Wolfram Function Repository
Instantuse addon functions for the Wolfram Language
Function Repository Resource:
Get a list of lucky numbers
ResourceFunction["LuckyNumbers"][n] gives the lucky numbers until integer n. 

ResourceFunction["LuckyNumbers"][n,k] gives the lucky numbers until integer n, only iterating the sieve procedure k times. 
First lucky numbers before 100:
In[1]:= 

Out[1]= 

Lucky numbers that are primes are lucky primes:
In[2]:= 

Out[2]= 

The first 300 integers surviving 6 steps of the lucky sieve process:
In[3]:= 

Out[3]= 

Stepbystep sieve for lucky numbers:
In[4]:= 

Out[4]= 

In[5]:= 

Distance between lucky numbers:
In[6]:= 

Out[6]= 

Highlight lucky numbers in an array:
In[7]:= 

Out[7]= 

Comparing with prime numbers:
In[8]:= 

Out[8]= 

“Twin” lucky numbers (those separated by an even number):
In[9]:= 

Out[9]= 

Goldbach conjecture for luckies (an even number is a sum of two luckies):
In[10]:= 

Out[10]= 

Number of lucky numbers less than a million:
In[11]:= 

Out[11]= 

Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License