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.

A172988 Primes p such that either p-3 or p-6 is prime.

This page as a plain text file.
%I A172988 #5 Apr 03 2019 18:45:42
%S A172988 5,11,13,17,19,23,29,37,43,47,53,59,67,73,79,89,103,107,109,113,137,
%T A172988 157,163,173,179,197,199,229,233,239,257,263,269,277,283,313,317,337,
%U A172988 353,359,373,379,389,439,449,463,467,509,547,563,569,577,593,599,607,613
%N A172988 Primes p such that either p-3 or p-6 is prime.
%C A172988 5 is the only prime p for which p-3 is prime, since p-3 is even for any odd prime and 2 is the only even prime. - _Harvey P. Dale_, Apr 03 2019
%F A172988 a(n)=A046117(n+1).
%t A172988 Select[Prime[Range[150]],AnyTrue[#+{-3,-6},PrimeQ]&] (* Requires Mathematica version 10 or later *) (* or *) Join[{5},Select[Prime[ Range[ 3,150]],PrimeQ[#-6]&]] (* see Comment *) (* _Harvey P. Dale_, Apr 03 2019 *)
%Y A172988 Cf. A046117, A067831.
%K A172988 nonn
%O A172988 1,1
%A A172988 _Juri-Stepan Gerasimov_, Feb 07 2010
%E A172988 449 inserted by _R. J. Mathar_, Mar 09 2010