OFFSET
1,2
COMMENTS
LINKS
Robert Price, Table of n, a(n) for n = 1..2122
MAPLE
select(isprime @ (t -> 1+t+t^2) @ numtheory:-sigma, [$1..1000]); # Robert Israel, Jun 09 2015
MATHEMATICA
Select[ Range[10000], PrimeQ[ 1 + DivisorSigma[1, #] + DivisorSigma[1, #]^2] & ]
Select[ Range[10000], PrimeQ[ Cyclotomic[3, DivisorSigma[1, #]]] &]
PROG
(PARI) for(n=1, 10^3, if(isprime(1+sigma(n)+sigma(n)^2), print1(n, ", "))) \\ Derek Orr, Jun 09 2015
(Magma) [n: n in [1..250] | IsPrime(1 + SumOfDivisors(n)+ SumOfDivisors(n)^2)]; // Vincenzo Librandi, Jun 10 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Price, Jun 09 2015
STATUS
approved