OFFSET
1,2
COMMENTS
If a(n) = 1, then n is in A006315.
MATHEMATICA
lnk[n_]:=Module[{k=1, n32=n^32}, While[!PrimeQ[n32+k^32], k++]; k]; Array[ lnk, 70] (* Harvey P. Dale, Apr 26 2018 *)
PROG
(Python)
import sympy
from sympy import isprime
def a(n):
..for k in range(10**4):
....if isprime(n**32+k**32):
......return k
n = 1
while n < 100:
..print(a(n))
..n += 1
(PARI) a(n)=for(k=1, 10^3, if(ispseudoprime(n^32+k^32), return(k)));
n=1; while(n<100, print(a(n)); n+=1)
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, May 17 2014
STATUS
approved