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.

A199717 Numbers k such that 6*k-1 is composite, but 6*k-5 is prime.

This page as a plain text file.
%I A199717 #27 Mar 20 2023 13:06:24
%S A199717 6,11,13,24,26,27,31,34,36,41,46,48,56,57,62,63,69,71,73,88,91,92,96,
%T A199717 97,101,102,104,106,111,116,119,122,123,126,132,136,139,154,166,167,
%U A199717 171,173,174,176,178,179,187,188,189,193,196,201,206,207,209,216,221
%N A199717 Numbers k such that 6*k-1 is composite, but 6*k-5 is prime.
%H A199717 Vincenzo Librandi, <a href="/A199717/b199717.txt">Table of n, a(n) for n = 1..1000</a>
%t A199717 Select[Range[221], PrimeQ[6 # - 5] && ! PrimeQ[6 # - 1] &] (* _T. D. Noe_, Nov 09 2011 *)
%o A199717 (Magma) [ p div 6 +1: p in PrimesUpTo(1326) | not IsPrime(p+4) and p mod 6 eq 1 ]; // _Bruno Berselli_, Nov 09 2011
%o A199717 (PARI) is(n)=isprime(6*n-5) && !isprime(6*n-1) \\ _Charles R Greathouse IV_, Jun 13 2017
%Y A199717 Cf. A186243.
%K A199717 nonn,easy
%O A199717 1,1
%A A199717 _Eleonora Echeverri-Toro_, Nov 09 2011