OFFSET
1,1
COMMENTS
Together with {2} gives the primitive elements of A354192. - Antti Karttunen, May 20 2022
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A267099(a(n)). - Antti Karttunen, May 20 2022
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 *)
PROG
(PARI) m=35; nm=0; np=0; pm=vector(m); pp=vector(m);
forstep(k=4, oo, 4, if(nm<m&&isprime(k-1), pm[nm++]=k-1); if(np<m&&isprime(k+1), pp[np++]=k+1); if(min(nm, np)==m, break));
for(j=1, m, print1(pm[j]*pp[j], ", ")) \\ Hugo Pfoertner, Jan 21 2020
(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
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Den Roussel (DenRoussel(AT)webtv.net)
EXTENSIONS
Offset corrected by Robert Israel, Jan 21 2020
STATUS
approved