OFFSET
1,2
EXAMPLE
m=1: 1+2+4+6=13 prime.
MATHEMATICA
Do[s=1^w+2^w+4^w+6^w; If[IntegerQ[w/100], Print[{w}]]; If[PrimeQ[s], Print[{w, s}]], {w, 0, 1000}]
Select[Range[400], PrimeQ[2^#+4^#+6^#+1]&] (* Harvey P. Dale, Jun 03 2023 *)
PROG
(PARI) is(n)=ispseudoprime(1+2^n+4^n+6^n) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
KEYWORD
more,nonn
AUTHOR
Labos Elemer, Apr 15 2003
EXTENSIONS
a(6) from Michael S. Branicky, Aug 10 2024
STATUS
approved