OFFSET
1,1
COMMENTS
These primes are neither sorted nor uniqued. They are listed in the order found in A259410.
LINKS
Robert Price, Table of n, a(n) for n = 1..1017
MAPLE
with(numtheory): A259412:=n->`if`(isprime(1-sigma(n)+sigma(n)^2-sigma(n)^3+sigma(n)^4), 1-sigma(n)+sigma(n)^2-sigma(n)^3+sigma(n)^4, NULL): seq(A259412(n), n=1..500); # Wesley Ivan Hurt, Jun 27 2015
MATHEMATICA
Select[Table[1 - DivisorSigma[1, n] + DivisorSigma[1, n]^2 - DivisorSigma[1, n]^3 + DivisorSigma[1, n]^4, {n, 10000}], PrimeQ]
Select[Table[Cyclotomic[10, DivisorSigma[1, n]], {n, 10000}], PrimeQ]
Select[1-#+#^2-#^3+#^4&/@DivisorSigma[1, Range[300]], PrimeQ] (* Harvey P. Dale, Jul 07 2017 *)
PROG
(Magma) [a: n in [1..300] | IsPrime(a) where a is (1 - SumOfDivisors(n) + SumOfDivisors(n)^2 - SumOfDivisors(n)^3 + SumOfDivisors(n)^4)]; // Vincenzo Librandi, Jun 27 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert Price, Jun 26 2015
STATUS
approved