A121940 Product of the first n primes of the form 6k+1.
7, 91, 1729, 53599, 1983163, 85276009, 5201836549, 348523048783, 25442182561159, 2009932422331561, 194963444966161417, 20081234831514625951, 2188854596635094228659, 277984533772656967039693, 38639850194399318418517327, 5834617379354297081196116377
Offset: 1
Examples
a(4) = 53599 = 7 * 13 * 19 * 31.
Links
- Ray Chandler, Table of n, a(n) for n=1..100
Programs
-
Mathematica
Rest@FoldList[Times, 1, Select[6 Range[100] + 1, PrimeQ]] (* Ray Chandler, Oct 01 2007 *)
-
PARI
lista(nn) = {my(pr=1, list=List()); forprime(p=1, nn, if ((p%3) == 1, listput(list,pr *= p));); Vec(list);} \\ Michel Marcus, Jul 17 2020
Formula
a(n) = Product_{i=1..n} A002476(i).
Extensions
Extended by Ray Chandler, Oct 01 2007
Comments