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.

A155760 Primes p such that p+30 and p+60 are prime.

This page as a plain text file.
%I A155760 #19 Sep 08 2022 08:45:41
%S A155760 7,11,13,23,29,37,41,43,53,67,71,79,97,107,137,151,163,167,181,197,
%T A155760 211,233,251,277,307,337,349,359,379,389,401,419,431,449,461,541,547,
%U A155760 557,571,587,601,613,617,631,709,727,797,823,827,877,881,907,911,937,953
%N A155760 Primes p such that p+30 and p+60 are prime.
%C A155760 Subsequence of A049481. - _Zak Seidov_, Apr 10 2015
%H A155760 Vincenzo Librandi, <a href="/A155760/b155760.txt">Table of n, a(n) for n = 1..1000</a>
%p A155760 A155760:=n->`if`(isprime(n) and isprime(n+30) and isprime(n+60),n,NULL): seq(A155760(n), n=1..2000); # _Wesley Ivan Hurt_, Apr 11 2015
%t A155760 Select[Prime[Range[1000]], PrimeQ[# +30] && PrimeQ[# + 60]&] (* _Vincenzo Librandi_, Oct 30 2012 *)
%o A155760 (Magma) [p: p in PrimesUpTo(1000) | IsPrime(p + 30) and IsPrime(p + 60)]; // _Vincenzo Librandi_, Oct 30 2012
%o A155760 (PARI) select(p->isprime(p+30)&&isprime(p+60), primes(10^3)) \\ _Charles R Greathouse IV_, Apr 11 2015
%K A155760 nonn,easy
%O A155760 1,1
%A A155760 _Vincenzo Librandi_, Jan 26 2009