OFFSET
1,2
LINKS
Michel Marcus, Table of n, a(n) for n = 1..57
PROG
(PARI) isok(k) = my(p=prime(k)); Mod(nextprime(p+1), k)^2 == Mod(p, k)^2; \\ Michel Marcus, Feb 17 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Feb 06 2002
EXTENSIONS
More terms from Michel Marcus, Feb 17 2021
STATUS
approved