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!)
A216981 Primes of the form n^7+2. 1

%I #19 Sep 08 2022 08:46:04

%S 2,3,4782971,1801088543,1174711139839,3938980639169,93206534790701,

%T 425927596977749,1107984764452583,2149422977421877,7416552901015627,

%U 19891027786401119,307732862434921877,830512886046548069,1042842864990234377,3678954248903875651

%N Primes of the form n^7+2.

%H Charles R Greathouse IV, <a href="/A216981/b216981.txt">Table of n, a(n) for n = 1..10000</a>

%t lst={}; Do[p=n^7+2; If[PrimeQ[p], AppendTo[lst, p]], {n, 6!}]; lst

%t Select[Table[n^7 + 2, {n, 0, 400}], PrimeQ] (* _Vincenzo Librandi_, Mar 15 2013 *)

%o (PARI)

%o v=select(n->isprime(n^7+2),vector(2000,n,n-1)); /* A216980 */

%o vector(#v, n, v[n]^7+2)

%o /* _Joerg Arndt_, Sep 21 2012 */

%o (PARI) select(isprime, vector(2000,n,(n-1)^7+2)) \\ _Charles R Greathouse IV_, Sep 21 2012

%o (Magma) [a: n in [0..500] | IsPrime(a) where a is n^7+2]; // _Vincenzo Librandi_, Mar 15 2013

%Y Cf. A056899, A144953, A216975, A216977, A216979.

%K nonn,easy

%O 1,1

%A _Michel Lagneau_, Sep 21 2012

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 18 18:58 EDT 2024. Contains 371781 sequences. (Running on oeis4.)