A286348 Numbers n such that 4^n + (-3)^n is prime.
0, 3, 4, 7, 16, 17, 59, 283, 311, 383, 499, 521, 541, 599, 1193, 1993, 2671, 7547, 24019, 46301, 48121, 68597, 91283, 131497, 148663, 184463, 341233
Offset: 1
Examples
3 is in this sequence because 4^3 + (-3)^3 = 37 is prime. 4 is in this sequence because 4^4 + (-3)^4 = 337 is prime.
Programs
-
Magma
[n: n in [0..250] | IsPrime(4^n+(-3)^n)];
-
Mathematica
Select[Range[0, 3000], PrimeQ[4^# + (-3)^#] &] (* Michael De Vlieger, May 09 2017 *)
-
PARI
is(n)=ispseudoprime(4^n+(-3)^n) \\ Charles R Greathouse IV, Jun 13 2017
Comments