OFFSET
1,3
LINKS
Kellen Shenton, Table of n, a(n) for n = 1..10000
MATHEMATICA
Do[k = 1; While[ !PrimeQ[n + k] || !PrimeQ[n^2 + k^2] || !PrimeQ[n^4 + k^4] || !PrimeQ[n^8 + k^8], k++ ]; Print[k], {n, 1, 45}]
sk[n_]:=Module[{k=1}, While[!AllTrue[{n^8+k^8, n^4+k^4, n^2+k^2, n+k}, PrimeQ], k++]; k]; Array[sk, 45] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jun 01 2017 *)
PROG
(PARI) for(n=1, 7, s=1; while(isprime(s^2+n^2)*isprime(s+n)*isprime(s^4+n^4)*isprime(s^8+n^8)==0, s++); print1(s, ", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, May 30 2002
EXTENSIONS
Edited by Robert G. Wilson v, Jun 07 2002
STATUS
approved