login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A365639 Numbers k such that k! + k^3 + 1 is prime. 0
0, 1, 2, 4, 6, 16, 28, 42 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
If k is a term then k+1 is not composite (since k! + k^3 + 1 is divisible by k+1 for a composite k > 4). - Amiram Eldar, Sep 14 2023
Any further terms exceed 50000. - Lucas A. Brown, Mar 05 2024
LINKS
MATHEMATICA
Select[Range[0, 50], ! CompositeQ[# + 1] && PrimeQ[#! + #^3 + 1] &] (* Amiram Eldar, Sep 14 2023 *)
PROG
(Python)
from sympy import isprime, factorial
print([k for k in range(0, 43) if isprime((factorial(k)+ k**3 + 1))])
CROSSREFS
Sequence in context: A030157 A162580 A098426 * A279480 A363785 A045665
KEYWORD
nonn,hard,more
AUTHOR
Darío Clavijo, Sep 14 2023
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 12 01:39 EDT 2024. Contains 375842 sequences. (Running on oeis4.)