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!)
A347165 Primes p such that 2*p-1 and (2*p-1)^2+(2*p)^2 are also prime. 1

%I #12 Aug 22 2021 12:42:25

%S 3,79,379,829,1279,2029,3019,3109,3529,3709,5479,5749,6379,6709,7219,

%T 7369,8689,11839,12049,13219,13729,14029,14419,15319,15349,16189,

%U 17659,18229,18439,20809,24979,25819,26539,28549,30859,32119,32359,32779,33739,34729,37039,38569,39079,39679,44119,44449

%N Primes p such that 2*p-1 and (2*p-1)^2+(2*p)^2 are also prime.

%C Except for 3, all terms end in 9.

%H Robert Israel, <a href="/A347165/b347165.txt">Table of n, a(n) for n = 1..10000</a>

%e a(3) = 379 is a term because 379, 2*379-1 = 757 and (2*379-1)^2+(2*379)^2 = 1147613 are prime.

%p filter:= proc(p) isprime(p) and isprime(2*p-1) and isprime(8*p^2-4*p+1) end proc:

%p select(filter, [3, seq(i,i=9..50000,10)]);

%o (Python)

%o from sympy import isprime, primerange

%o def ok(p): return isprime(2*p-1) and isprime((2*p-1)**2 + (2*p)**2)

%o def aupto(limit): return list(filter(ok, primerange(2, limit+1)))

%o print(aupto(44450)) # _Michael S. Branicky_, Aug 20 2021

%Y Cf. A347110.

%K nonn

%O 1,1

%A _J. M. Bergot_ and _Robert Israel_, Aug 20 2021

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 24 03:08 EDT 2024. Contains 371918 sequences. (Running on oeis4.)