OFFSET
1,2
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..1200
EXAMPLE
a(3)=4: 4^2+1=17. Reversing the digits gives 71 which is prime.
MAPLE
with(StringTools):K:= proc()local i, a, b, c; c:=1; for i from 1 to 10000 do; a:=parse(Reverse(convert((i^2+1), string))); b:=isprime(a); if b then lprint(c, i); c:=c+1; fi; od; end:K(); # K. D. Bajpai, Jun 30 2013
with(StringTools):K := proc(n) local i, a; a:=parse(Reverse(convert((n^2+1), string))):
if (isprime(a)) then RETURN (n) fi: end: seq(K(n), n=1..1500); # K. D. Bajpai, Jun 30 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
K. D. Bajpai, Jun 30 2013
STATUS
approved