OFFSET
1,1
COMMENTS
Primes whose base 4 representation contains only zeros and 1's.
As a subsequence of primes in A000695, these could be called Moser-de Bruijn primes. See also A235461 for those terms whose base 4 representation also represents a prime in base 2. - M. F. Hasler, Jan 11 2014
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
f:= proc(n) local L, x;
L:= convert(n, base, 2);
x:= 1+add(L[i]*4^i, i=1..nops(L));
if isprime(x) then x fi
end proc:
map(f, [$1..1000]); # Robert Israel, Sep 06 2018
MATHEMATICA
Select[Prime[Range[6650]], Max[IntegerDigits[#, 4]]<=1&] (* Jayanta Basu, May 22 2013 *)
PROG
(PARI) for(i=1, 999, isprime(b=vector(#b=binary(i), j, 4^(#b-j))*b~)&&print1(b", ")) \\ - M. F. Hasler, Jan 12 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Nov 19 2002
EXTENSIONS
More terms from Sascha Kurz, Jan 03 2003
STATUS
approved