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.

A048630 n-th 4k+1 prime times n-th 4k-1 prime.

Original entry on oeis.org

15, 91, 187, 551, 851, 1271, 2279, 2867, 4307, 5963, 6887, 7979, 9047, 11639, 14659, 18923, 20567, 24047, 27331, 31459, 32899, 40991, 44503, 47959, 54227, 59987, 62879, 67159, 73543, 82319, 85907, 95371, 107143, 109783, 123463, 134983, 142523, 147167, 155011
Offset: 1

Views

Author

N. J. A. Sloane, Den Roussel (DenRoussel(AT)webtv.net)

Keywords

Comments

Together with {2} gives the primitive elements of A354192. - Antti Karttunen, May 20 2022

Crossrefs

Subsequence of A001358 and of A080774.

Programs

  • Magma
    m:=95; v:=[4*k-1: k in [1..m]|IsPrime(4*k-1)]; w:=[4*k+1: k in  [1..m]|IsPrime(4*k+1)]; [v[k]*w[k]:k in [1..Min([#v,#w])]]; // Marius A. Burtea, Jan 21 2020
  • Maple
    P1:= select(isprime, [seq(i,i=1..1000,4)]):
    P2:= select(isprime, [seq(i,i=3..1000,4)]):
    zip(`*`,P1,P2); # Robert Israel, Jan 21 2020
  • Mathematica
    zip[f_, x_, y_, z_] := With[{m = Max[Length[x],
       Length[y]]}, f[PadRight[x, m, z], PadRight[y, m, z]]];
    zip[Times,
       Select[Range[1, 1000, 4], PrimeQ],
       Select[Range[3, 1000, 4], PrimeQ], 0] //
       Select[#, Positive]& (* Jean-François Alcover, Dec 05 2023 *)
  • PARI
    m=35;nm=0;np=0;pm=vector(m);pp=vector(m);
    forstep(k=4,oo,4,if(nmHugo Pfoertner, Jan 21 2020
    

Formula

a(n) = A002144(n) * A002145(n).
a(n) = A267099(a(n)). - Antti Karttunen, May 20 2022

Extensions

Offset corrected by Robert Israel, Jan 21 2020