OFFSET
1,1
LINKS
Zak Seidov, Table of n, a(n) for n = 1..10000
EXAMPLE
MAPLE
with(numtheory):
isok := n -> evalb(bigomega(ithprime(n)^2 + ithprime(n+1)^2) = 2);
MATHEMATICA
Position[Total/@Partition[Prime[Range[600]]^2, 2, 1], _?(PrimeOmega[#] == 2&)]// Flatten (* Harvey P. Dale, Apr 12 2017 *)
PROG
(PARI) isok(n) = bigomega(prime(n)^2 + prime(n+1)^2) == 2;
lista(nn) = {for(n=1, nn, if (isok(n), print1(n, ", "))); } \\ Michel Marcus, Apr 12 2014
(PARI) s=[]; for(n=2, 600, if(isprime((prime(n)^2+prime(n+1)^2)/2), s=concat(s, n))); s \\ Colin Barker, Apr 12 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Apr 11 2014
STATUS
approved