OFFSET
0
LINKS
MATHEMATICA
a[n_] := If[PrimeQ[n^2 + 2], 1, 0]; Array[a, 100, 0] (* Amiram Eldar, Jul 12 2022 *)
PROG
(PARI) A355449(n) = isprime(2+(n^2));
(Python)
from sympy import isprime
def A355449(n): return int(isprime(n**2+2)) # Chai Wah Wu, Jul 13 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 12 2022
STATUS
approved