EditSafely

Generate Lucas Primes

Quickly generate Lucas numbers that are prime. Runs entirely in your browser, so your data never leaves your device.

Output

The result appears here as you type.

Options

How to use Generate Lucas Primes

  1. 1. Set how many primes. Enter How many primes to decide the length of the list. Lucas primes are sparse within the Lucas sequence, so the tool searches further as this count grows.
  2. 2. Set a separator. Choose Separator, a comma or newline, to shape the output for a plain list, a spreadsheet column or a code array.
  3. 3. Copy the results. The tool walks the Lucas sequence, checks each term for primality, and keeps only the ones that pass. Copy the finished list for your number theory notes.

When to use Generate Lucas Primes

Generate Lucas Primes filters the Lucas number sequence down to just the terms that are also prime. It saves the combined work of generating Lucas numbers and testing each one for primality whenever this overlap is what you actually need.

  • Studying primality within a companion sequence. A number theory student comparing which Lucas numbers happen to be prime against which Fibonacci numbers are prime wants both lists side by side without computing each manually.
  • Testing a chained generator-and-filter pipeline. A developer who built a pipeline that generates Lucas numbers and then filters for primes validates the combined output against this tool's verified list.
  • Referencing OEIS A005479. Someone reading a paper or forum post about Lucas primes wants to quickly regenerate the sequence to confirm the values match the source they are checking against.
  • Preparing a lecture example on sequence overlaps. An instructor showing how two different linear recurrences can still share the property of occasionally producing primes uses Lucas primes as a companion example to Fibonacci primes.

Examples

The first nine Lucas primes

Output

2, 3, 7, 11, 29, 47, 199, 521, 2207

About the Generate Lucas Primes tool

Generate Lucas Primes runs as plain JavaScript in your browser tab, with no server behind it. Quickly generate Lucas numbers that are prime. Whatever you put in stays on your device from start to finish.

The tool is part of EditSafely's Math Tools section, 234 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.

You can shape the output with 2 settings, including How many primes and Separator, and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.

That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.

Frequently asked questions

Does Generate Lucas Primes cost anything?

Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.

Does the generator send anything to a server?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

How do I get a different result?

Run the generator again. Each run is computed fresh on your device, and any options you change are applied to the next result immediately.

Do I need to sign up or install anything?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.

Related tools

All Math Tools