**Thousands of tools!** Check out Online Tools – I have now added thousands of tools.

I often have to generate Lucas prime numbers so I created this simple online utility that does it for me. It lets you calculate however many Lucas primes or their indexes as you need, starting from any position. It works in the browser and is powered by alien technology from the future.

## Lucas Primes Generator Options

## Lucas Primes Generator Examples (click to try!)

2 3 7 11 29 47 199 521 2207 3571 9349 3010349 54018521 370248451

_{n}) are prime numbers.

0, 2, 4, 5, 7, 8, 11, 13, 16, 17, 19, 31, 37, 41, 47, 53, 61, 71, 79, 113, 313, 353, 503, 613, 617, 863, 1097, 1361, 4787, 4793, 5851, 7741, 8467, 10691, 12251, 13963, 14449, 19469, 35449, 36779

_{30}in the octal base. The length of this number is 1110 digits in base-8 but in base-10 its length is 1002 digits.

132464715033403763063107514361220073212265375270504261742312322061146645310175324020423713230475776317131623362150744610163175332375000262352507241670615421741123377572220432077344141106550515103507040124075747046275414633713670615600554107236600662747137344031555405300574153664152667301704522411164023533011672371006101340171737217701604051302135777547240644442211540114670771341276121464577235563100225362063435602660772665731411214646616066261101162440456275070434400360616065773241714245460603561625375642474257533407551753735570240456710060110614355467152653532404365235120436662233571115062102576530575655307654156255635564657746677557303026231256426372056125574556143543460457061267143037003656156424515730003464506235001674406651532574324312506667511641012754361261706151174667321262030151166352675657725450726156172556537442131536362412511752500726071766010447732515547025060153771126064176633565567245653635447736271274214744352504026354232147446624327365651173426137721010205016351454231050417111336037621010431311507211063132051201256573344510122400720102327063760634352463435133734626122030600143

## How Does This Lucas Primes Generator Work?

This Lucas prime number generator works entirely in your browser and is written in JavaScript. There are infinitely many prime numbers but only 64 known Lucas prime numbers. As Lucas numbers that are also prime numbers are so rare, their values get extremely large. Just the 50th Lucas prime consists of almost forty thousand digits. Therefore, this utility uses a previously calculated lookup table of the first 40 values and stores them in the `lucas-primes.js`

script. It uses the `lucasPrimes`

array of unnamed objects with keys `prime`

and `index`

as the data structure to hold the Lucas primes and corresponding Lucas indexes. It then calls the `slice()`

function with `start`

and `start + count`

arguments to get `count`

values starting from the `start`

position (both specified in options) of `lucasPrimes`

array. Then, depending on which option is selected (generate Lucas primes or Lucas indexes), it accesses the `prime`

or `index`

value and changes its base to the one that's specified in options. After all this, it `join()`

s the values together with the `separator`

as an argument.

### Created by Browserling

This lucas primes generator was created by me and my team at Browserling. Behind the scenes, it's actually powered by our web developer tools that are used by millions of people every month. Browserling itself is an online cross-browser testing service powered by alien technology. Check it out!

Secret message: If you love my tools, then I love you, too! Use coupon code TOOLLING to get a discount at my company.