OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
t0:=[]; u0:=[]; for n from 0 to 500 do p0:="10"; p1:="01"; t1:=cat(p0, n, p1); t1:=convert(t1, decimal, 10); if isprime(t1) then t0:=[op(t0), n]; u0:=[op(u0), t1]; fi; od: t0;
# Alternative:
filter:= n -> isprime( 10^(ilog10(n)+4)+100*n+1):
select(filter, [$1..1000]); # Robert Israel, Mar 16 2017
MATHEMATICA
Select[ Range[280], PrimeQ[ FromDigits[Join[{1, 0}, IntegerDigits[ # ], {0, 1}]]] &] (* Robert G. Wilson v, Nov 20 2004 *)
PROG
(PARI) isok(n) = isprime(eval(concat(concat("10", n), "01"))); \\ Michel Marcus, Jul 29 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Nov 19 2004
STATUS
approved