OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
16 is a term because 16*61 + 1 = 977 is prime.
MAPLE
rev:= proc(n) local L, i;
L:= convert(n, base, 10);
add(L[-i]*10^(i-1), i=1..nops(L))
end proc:
filter:= t -> isprime(t*rev(t)+1):
select(filter, [$1..1000]); # Robert Israel, Jul 03 2024
MATHEMATICA
Select[Range[250], PrimeQ[# IntegerReverse[#]+1]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Oct 05 2017 *)
CROSSREFS
KEYWORD
AUTHOR
Shyam Sunder Gupta, Aug 23 2002
STATUS
approved