OFFSET
1,1
COMMENTS
The Hamming distance between two primes p and q is the Hamming distance between their binary expansions. - N. J. A. Sloane, May 27 2018
Conjecture: this sequence is a permutation of the primes.
By definition, the absolute difference of a(n) and a(n + 1) is in A048645. - David A. Corneth, Jan 12 2018
LINKS
MATHEMATICA
f[s_List] := Block[{p = s[[-1]], q = 3}, While[MemberQ[s, q] || Plus @@ IntegerDigits [BitXor[p, q], 2] > 2, q = NextPrime@q]; Append[s, q]]; s = {2}; Nest[f, s, 65]
PROG
(PARI) s = 0; v = 2; for (n=1, 66, print1 (v ", "); s += 2^v; forprime (p=2, oo, if (!bittest(s, p) && hammingweight(bitxor(p, v))<=2, v = p; break))) \\ Rémy Sigrist, Jan 08 2018
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert G. Wilson v, Nov 12 2017
STATUS
approved