A261722 Values of m such that 2^m + 3^m + 5^m + 7^m + 11^m + 13^m is a prime number.
1, 7, 25, 91
Offset: 1
Examples
1 is a term because 2^1 + 3^1 + 5^1 + 7^1 + 11^1 + 13^1 = 41 and 41 is a prime number.
Programs
-
Magma
[n: n in [0..1000] | IsPrime(a) where a is 2^n+3^n+5^n+ 7^n+11^n+13^n]; // Vincenzo Librandi, Aug 30 2015
-
Mathematica
Select[Table[{n, Sum[Prime[k]^n, {k, 6}]}, {n, 1000}], PrimeQ[#[[2]]]&] [[All, 1]] (* Michael De Vlieger, Aug 29 2015 *)
-
PARI
for(n=1, 1e3, if(isprime(13^n+11^n+7^n+5^n+3^n+2^n), print1(n", ")))
Extensions
Mathematica scripts updated by Jean-François Alcover, Sep 04 2015
Comments