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.

A103564 Primes p such that 3*p^2 + 2 is prime.

Original entry on oeis.org

3, 7, 13, 53, 67, 97, 227, 263, 277, 337, 487, 503, 547, 557, 613, 617, 647, 683, 727, 937, 953, 977, 1093, 1277, 1327, 1427, 1583, 1637, 1663, 1723, 1873, 1907, 1987, 2087, 2267, 2297, 2467, 2593, 2663, 2677, 2803, 3037, 3083, 3343, 3373, 3433, 3643
Offset: 1

Views

Author

Zak Seidov, Mar 23 2005

Keywords

Programs

  • Magma
    [p: p in PrimesUpTo(5000)|IsPrime(3*p^2+2)] // Vincenzo Librandi, Jan 30 2011
  • Mathematica
    f[n_]:=PrimeQ[(n-1)^2+n^2+(n+1)^2];lst={};Do[p=Prime[n];If[f[p],AppendTo[lst,p]],{n,6!}];lst (* Vladimir Joseph Stephan Orlovsky, Oct 27 2009 *)
    Select[Prime[Range[600]],PrimeQ[3#^2+2]&] (* Harvey P. Dale, Nov 08 2011 *)