The OEIS is supported by the many generous donors to the OEIS Foundation. Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A243400 Primes p such that p^6 - p^5 - p^4 - p^3 - p^2 - p - 1 is prime. 0

%I

%S 5,7,17,37,79,157,239,269,277,359,419,449,467,557,677,739,787,829,857,

%T 977,1319,1399,1597,1657,2069,2269,2297,2377,2437,2459,2819,2969,2999,

%U 3019,3137,3299,3389,3407,3967,4007,4099,4357,4547,4729,4987,5179,5419,5569,5779,6637

%N Primes p such that p^6 - p^5 - p^4 - p^3 - p^2 - p - 1 is prime.

%C a(1) = 5 is the only term that ends in a 5. It is unknown if any term will end in a 3 or 1.

%e 5 is prime and 5^6 - 5^5 - 5^4 - 5^3 - 5^2 - 5 - 1 = 11719 is prime. Thus 5 is a member of this sequence.

%o (Python)

%o import sympy

%o from sympy import isprime

%o {print(n,end=', ') for n in range(10**4) if isprime(n**6-n**5-n**4-n**3-n**2-n-1) and isprime(n)}

%o (PARI) for(n=1,10^4,if(ispseudoprime(n)&&ispseudoprime(n^6-sum(i=0,5,n^i)),print1(n,", ")))

%Y Cf. A243300.

%K nonn

%O 1,1

%A _Derek Orr_, Jun 04 2014

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.

Last modified June 28 17:31 EDT 2022. Contains 354907 sequences. (Running on oeis4.)