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
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
How Does This Lucas Primes Generator Work?
lucas-primes.js script. It uses the
lucasPrimes array of unnamed objects with keys
index as the data structure to hold the Lucas primes and corresponding Lucas indexes. It then calls the
slice() function with
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
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 Browserling's programmer 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 COMLING to get a discount at my company Browserling.