|
|
A100408
|
|
Numbers n such that n^n-2 is prime.
|
|
8
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Except for the first term all terms are odd.
Numbers n such that n^n+7 is prime gives the (as yet) too-short sequence 2,4,6,32,...
|
|
LINKS
|
|
|
EXAMPLE
|
51 is in the sequence because 51^51-2 is prime. 1071^1071-2 is a probable prime.
|
|
MATHEMATICA
|
Do[If[PrimeQ[n^n-2], Print[n]], {n, 1111}]
|
|
PROG
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
more,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|