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

 

Logo


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

1,1

COMMENTS

The prime corresponding to a(4) is a 5156-digit prime.

LINKS

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

MATHEMATICA

v={}; Do[If[PrimeQ[n^n + n! + n*n + n/n], v=Append[v, n]; Print[v]], {n, 3250}]

PROG

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

CROSSREFS

Cf. A084914, A084852.

Sequence in context: A046474 A056146 A115835 * A072712 A046476 A263429

Adjacent sequences:  A089675 A089676 A089677 * A089679 A089680 A089681

KEYWORD

nonn

AUTHOR

Farideh Firoozbakht, Jan 06 2004

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 April 24 20:29 EDT 2019. Contains 322446 sequences. (Running on oeis4.)