OFFSET
1,1
COMMENTS
Equally: 2 followed by all primes with their hamming weight a composite number.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
EXAMPLE
2, which in binary (A007088) is "10", has just one 1-bit, and 1 is not a prime, thus 2 is included in the sequence.
23, which in binary is "10111", has four 1-bits, and 4 is not a prime, thus 23 is included in the sequence.
PROG
(PARI)
i = 0; forprime(n=2, 2^31, if(!isprime(hammingweight(n)), i++; write("b255564.txt", i, " ", n); if(i>=10000, return(n))));
(Scheme, with Antti Karttunen's IntSeq-library)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 14 2015
STATUS
approved