[go: up one dir, main page]

login
Primes p such that 2*p^4+-9 are also prime.
1

%I #12 Sep 08 2022 08:45:51

%S 2,17,101,191,647,733,2677,4133,4231,6869,8111,15383,15607,16273,

%T 17761,18583,23719,24923,30497,30881,32503,33829,42719,43103,44797,

%U 47581,50321,56249,56591,56857,56941,60757,70327,70381,77977,81919,84947

%N Primes p such that 2*p^4+-9 are also prime.

%H Vincenzo Librandi, <a href="/A174365/b174365.txt">Table of n, a(n) for n = 1..1000</a>

%e For p=2, 2*2^4+-9=(23,41); p=17, 2*17^4+-9=(167033,167051).

%t Select[Prime[Range[4000]], And@@PrimeQ[2 #^4 + {9, -9}]&] (* _Vincenzo Librandi_, Apr 10 2013 *)

%o (Magma) [p: p in PrimesUpTo(100000) | IsPrime(2*p^4-9) and IsPrime(2*p^4+9)];

%K nonn,easy

%O 1,1

%A _Vincenzo Librandi_, Mar 17 2010