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.

A089151 Primes p such that 6*p - 7 and 6*p - 5 are twin primes.

This page as a plain text file.
%I A089151 #18 Nov 18 2022 13:59:09
%S A089151 2,3,11,13,19,31,41,53,59,71,73,101,139,173,193,239,269,271,313,349,
%T A089151 353,379,433,449,521,563,613,643,683,823,829,881,941,1051,1061,1093,
%U A089151 1223,1249,1259,1373,1399,1439,1471,1571,1621,1669,1723,1811,1861,1951,1973
%N A089151 Primes p such that 6*p - 7 and 6*p - 5 are twin primes.
%H A089151 Amiram Eldar, <a href="/A089151/b089151.txt">Table of n, a(n) for n = 1..10000</a>
%e A089151 6*19 - 7 = 107, 6*19 - 5 = 109; 107 and 109 are twin primes.
%t A089151 Select[Range[2, 2000], And @@ PrimeQ[{#, 6#-5, 6#-7}] &] (* _Amiram Eldar_, Jan 15 2020 *)
%t A089151 Select[Prime[Range[300]],AllTrue[6#-{5,7},PrimeQ]&] (* _Harvey P. Dale_, Nov 18 2022 *)
%o A089151 (Magma) [p: p in PrimesUpTo(1000000)| IsPrime(6*p-5) and IsPrime(6*p-7)] // _Vincenzo Librandi_, Nov 16 2010
%Y A089151 Cf. A001097, A001359, A006512, A060212.
%K A089151 easy,nonn
%O A089151 1,1
%A A089151 _Pierre CAMI_, Dec 06 2003