OFFSET
1,1
COMMENTS
The only primes of binary weight 2 are the Fermat primes (only five are known: 11, 101, 10001, 100000001, 10000000000000001); the repunits base 2 are the Mersenne primes. - Daniel Forgues, Nov 07 2011
REFERENCES
J.-P. Allouche and J. Shallit, Automatic Sequences, Cambridge Univ. Press, 2003, p. 3.
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
Chris Caldwell, The prime pages, The first 1000 primes.
FORMULA
MATHEMATICA
FromDigits /@ IntegerDigits[ Prime[ Range[31]], 2] (* Robert G. Wilson v, Jun 30 2005 *)
PROG
(Haskell)
a004676 = a007088 . a000040 -- Reinhard Zumkeller, Aug 06 2012
(PARI) a(n)=subst(Pol(binary(prime(n))), 'x, 10) \\ Charles R Greathouse IV, Mar 20 2013
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
STATUS
approved