A059987 Lucky numbers generated from primes.
2, 5, 11, 17, 31, 41, 47, 59, 73, 83, 103, 127, 137, 149, 157, 179, 197, 211, 233, 257, 269, 283, 307, 313, 331, 353, 367, 379, 389, 431, 449, 487, 499, 509, 547, 563, 571, 607, 617, 631, 661, 677, 691, 709, 739, 751, 823, 829, 853, 877, 883, 907, 919, 947
Offset: 1
Programs
-
PARI
list_A059987(N=200)={my(v=primes(N),i);while(v[i++]<=#v,v=vecextract(v,2^#v-1-sum(j=1,#v\v[i],2^(v[i]*j-1))));v} \\ - M. F. Hasler, Sep 22 2013
Extensions
Entry revised by N. J. A. Sloane, Oct 20 2007, at the suggestion of R. J. Mathar
Comments