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.

A128829 Numbers k such that 6*k^2 + 17 is prime.

This page as a plain text file.
%I A128829 #22 Apr 15 2025 10:29:40
%S A128829 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,20,21,23,25,26,27,28,30,31,
%T A128829 33,36,37,38,41,42,44,46,48,49,50,53,58,59,60,61,62,63,64,65,66,67,72,
%U A128829 73,75,76,77,79,81,82,83,89,95,96,98,100,101,103,106,107,108,110,111,113
%N A128829 Numbers k such that 6*k^2 + 17 is prime.
%H A128829 Robert Price, <a href="/A128829/b128829.txt">Table of n, a(n) for n = 1..10000</a>
%e A128829 6*8^2 + 17 = 401 is prime, hence 8 is a term.
%p A128829 a:=proc(n) if isprime(6*n^2+17)=true then n else fi end: seq(a(n),n=0..150); # _Emeric Deutsch_, Apr 16 2007
%t A128829 f[a_]:=6*a^2+17; lst={};Do[If[PrimeQ[f[n]],AppendTo[lst,n]],{n,0,5!}];lst (* _Vladimir Joseph Stephan Orlovsky_, Jul 14 2009 *)
%t A128829 Select[Range[0,200],PrimeQ[6#^2+17]&] (* _Harvey P. Dale_, Jun 03 2014 *)
%o A128829 (Magma) [ n: n in [0..113] | IsPrime(6*n^2+17) ]; /* _Klaus Brockhaus_, Apr 16 2007 */
%o A128829 (PARI) is(n)=isprime(6*n^2+17) \\ _Charles R Greathouse IV_, Jun 13 2017
%Y A128829 Cf. A151953.
%K A128829 nonn,less,easy
%O A128829 1,3
%A A128829 _J. M. Bergot_, Apr 13 2007
%E A128829 Edited and extended by _Klaus Brockhaus_ and _Emeric Deutsch_, Apr 16 2007