OFFSET
1,2
LINKS
Daniel Starodubtsev, Table of n, a(n) for n = 1..10000
MAPLE
t0:=[]; u0:=[]; for n from 1 to 100 do t1:=cat(1, n, 1); t1:=convert(t1, decimal, 10); if isprime(t1) then t0:=[op(t0), n]; u0:=[op(u0), t1]; fi; od: t0;
MATHEMATICA
Select[Range[0, 210], PrimeQ[FromDigits[Join[{1}, IntegerDigits[#], {1}]]]&] (* Jayanta Basu, Jun 02 2013 *)
PROG
(Python)
from sympy import isprime
print([i for i in range(200) if isprime(int('1' + str(i) + '1'))]) # Daniel Starodubtsev, Apr 05 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, May 15 1998
STATUS
approved