OFFSET
1,1
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..10000
EXAMPLE
a(n)=323 -> nextprime(a(n)) is 331 so '331323331' is prime.
PROG
(PARI) isok(n)=my(x=digits(nextprime(n+1))); isprime(fromdigits(concat([x, digits(n), x]))) \\ Andrew Howroyd, Aug 13 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Oct 15 1998
EXTENSIONS
Offset changed by Andrew Howroyd, Aug 13 2024
STATUS
approved