cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A271347 Primes p such that p + 38 is also prime.

This page as a plain text file.
%I A271347 #13 Sep 16 2024 19:25:05
%S A271347 3,5,23,29,41,59,71,89,101,113,173,191,233,239,269,293,311,359,383,
%T A271347 401,419,449,461,503,509,563,569,593,653,701,719,773,821,839,881,929,
%U A271347 953,971,983,1013,1031,1049,1091,1163,1193,1259,1283,1289
%N A271347 Primes p such that p + 38 is also prime.
%C A271347 A134118 is a subsequence of this sequence.
%H A271347 Karl V. Keller, Jr., <a href="/A271347/b271347.txt">Table of n, a(n) for n = 1..10000</a>
%e A271347 3 such that 3 + 38 = 41 is also prime.
%e A271347 5 such that 5 + 38 = 43 is also prime.
%t A271347 Select[Prime[Range[250]], PrimeQ[# + 38] &] (* _Alonso del Arte_, Apr 05 2016 *)
%o A271347 (Python)
%o A271347 from sympy import isprime
%o A271347 for i in range(3, 2001,2):
%o A271347   if isprime(i) and isprime(i+38): print (i,end=', ')
%o A271347 (PARI) lista(nn) = forprime(p=2, nn, if(ispseudoprime(p+38), print1(p, ", "))); \\ _Altug Alkan_, Apr 05 2016
%Y A271347 Cf. A000040, A134118.
%K A271347 nonn
%O A271347 1,1
%A A271347 _Karl V. Keller, Jr._, Apr 04 2016