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.

Showing 1-2 of 2 results.

A103565 Primes of the form 3*p^2+2, where p is prime.

Original entry on oeis.org

29, 149, 509, 8429, 13469, 28229, 154589, 207509, 230189, 340709, 711509, 759029, 897629, 930749, 1127309, 1142069, 1255829, 1399469, 1585589, 2633909, 2724629, 2863589, 3583949, 4892189, 5282789, 6108989, 7517669, 8039309, 8296709, 8906189, 10524389
Offset: 1

Views

Author

Zak Seidov, Mar 23 2005

Keywords

Programs

  • Magma
    [a: p in PrimesUpTo(2000)|IsPrime(a) where a is 3*p^2 + 2]; // Vincenzo Librandi, Mar 21 2013
  • Mathematica
    Select[(3#^2+2)&/@Prime[Range[500]],PrimeQ] (* Harvey P. Dale, Nov 04 2011 *)

Formula

a(n) = 2+3*(A103564(n))^2.

Extensions

Corrected by Harvey P. Dale, Nov 04 2011

A257163 Primes of the form 3n^2 + 2.

Original entry on oeis.org

2, 5, 29, 149, 509, 677, 1877, 3677, 8429, 9749, 11909, 13469, 17789, 22709, 27077, 28229, 45389, 46877, 53069, 70229, 72077, 81677, 100469, 102677, 114077, 128549, 141269, 154589, 180077, 192029, 195077, 207509, 223589, 230189, 261077, 312989, 340709, 352949, 395309, 399677, 426389
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Apr 16 2015

Keywords

Comments

Two together with A027864(n).
Generated by n = 0, 1, 3, 7, 13, 15, 25, 35, 53, 57, ...

Examples

			2 is in this sequence because 3*0^2 + 2 = 2 and 2 is prime.
		

Crossrefs

Cf. A103564, A027864. Primes of the form k*n^2 + k - 1: A090698, this sequence, A121825, A201483, A201600, A201607, A201704.

Programs

  • Magma
    [a: n in [0..400] | IsPrime(a) where a is (3*n^2+2)];
    
  • Mathematica
    Select[Table[3 n^2 + 2, {n, 0, 400}], PrimeQ] (* Vincenzo Librandi, Apr 17 2015 *)
  • PARI
    select(isprime, vector(100, n, 3*n^2-6*n+5)) \\ Charles R Greathouse IV, Apr 17 2015
Showing 1-2 of 2 results.