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!)
A230029 Primes p such that f(f(p)) is prime, where f(x) = x^4-x^3-x^2-x-1. 0
3, 487, 547, 877, 1063, 1291, 1579, 1657, 2287, 2797, 3343, 3793, 4909, 4957, 6163, 6571, 7393, 8461, 8521, 8563, 9631, 11257, 11863, 12211, 12757, 12907, 13063, 13567, 13999, 14983, 15427, 15739, 16087, 16651, 16699, 17419, 17713, 17977 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
3 is prime and (3^4-3^3-3^2-3-1)^4 - (3^4-3^3-3^2-3-1)^3 - (3^4-3^3-3^2-3-1)^2 - (3^4-3^3-3^2-3-1) - 1 = 2755117 is prime. Thus, 3 is a member of this sequence.
PROG
(Python)
import sympy
from sympy import isprime
def f(x):
..return x**4-x**3-x**2-x-1
{print(p) for p in range(10**5) if isprime(p) and isprime(f(f(p)))}
CROSSREFS
Sequence in context: A342067 A203681 A195611 * A238447 A241977 A045616
KEYWORD
nonn
AUTHOR
Derek Orr, Feb 23 2014
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 April 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)