OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..684
MAPLE
for i from 0 to 30 do it:=sum(10^j, j=0..i): for k from 0 to i do if isprime(it+10^k) then printf(`%d, `, it+10^k) fi: od:od: (Sellers)
MATHEMATICA
Flatten[ Table[ Select[ Sort[ FromDigits /@ Permutations[ Flatten[{2, Table[1, {n}]}]]], PrimeQ[ # ] &], {n, 0, 19}]] (* Robert G. Wilson v, May 19 2005 *)
Select[Flatten[Table[FromDigits/@Permutations[PadRight[{2}, n, 1]], {n, 20}]], PrimeQ]//Sort (* Harvey P. Dale, May 28 2017 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Zak Seidov, May 17 2005
EXTENSIONS
More terms from Robert G. Wilson v and James A. Sellers, May 19 2005
STATUS
approved