OFFSET
1,2
LINKS
Robert Price, Table of n, a(n) for n = 1..756
MAPLE
with(numtheory): A259370:=n->`if`(isprime(1+sigma(n)^3+sigma(n)^6), n, NULL): seq(A259370(n), n=1..1000); # Wesley Ivan Hurt, Jul 09 2015
MATHEMATICA
Select[ Range[10000], PrimeQ[ 1 + DivisorSigma[1, #]^3 + DivisorSigma[1, #]^6] & ]
Select[ Range[10000], PrimeQ[ Cyclotomic[9, DivisorSigma[1, #]]] &]
Select[Range[500], PrimeQ[Total[DivisorSigma[1, #]^{0, 3, 6}]]&] (* Harvey P. Dale, May 29 2023 *)
PROG
(Magma) [n: n in [1..500] | IsPrime(1 + DivisorSigma(1, n)^3 + DivisorSigma(1, n)^6)]; // Vincenzo Librandi, Jun 27 2015
(PARI) is(n)=my(s=sigma(n)); isprime(s^6+s^3+1) \\ Charles R Greathouse IV, May 22 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert Price, Jun 25 2015
STATUS
approved