login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A065799 Numbers n such that n^n + n! + n^2 + n + 1 is prime. 0
1, 2, 6, 10, 126, 670 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Table of n, a(n) for n=1..6.

MATHEMATICA

Do[ If[ PrimeQ[ n^n + n! + n^2 + n + 1 ], Print[n]], {n, 1, 750} ]

PROG

(PARI) is(n)=ispseudoprime(n^n+n!+n^2+n+1) \\ Charles R Greathouse IV, Jun 13 2017

CROSSREFS

Sequence in context: A083458 A124621 A325237 * A162582 A123098 A136699

Adjacent sequences:  A065796 A065797 A065798 * A065800 A065801 A065802

KEYWORD

nonn

AUTHOR

Robert G. Wilson v, Dec 05 2001

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 20 01:36 EDT 2019. Contains 324223 sequences. (Running on oeis4.)