OFFSET
1,1
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000 (terms 1..520 from Vincenzo Librandi)
FORMULA
a(n) = Product_{j=n..n+4} prime(j). - Jon E. Schoenfield, Jan 07 2015
a(n) ~ (n log n)^5. - Charles R Greathouse IV, Jun 27 2019
MATHEMATICA
lst={}; Do[p0=Prime[n]; p1=Prime[n+1]; p2=Prime[n+2]; p3=Prime[n+3]; p4=Prime[n+4]; a=p0*p1*p2*p3*p4; AppendTo[lst, a], {n, 5!}]; lst (* Vladimir Joseph Stephan Orlovsky, Mar 10 2009 *)
Times@@@Partition[Prime[Range[200]], 5, 1] (* Harvey P. Dale, Oct 21 2011 *)
PROG
(Magma) [&*[ NthPrime(n+k): k in [0..4] ]: n in [1..22]]; // Bruno Berselli, Feb 25 2011
(PARI) first(n)=my(P=primes(n+4)); vector(n, i, prod(j=i, i+4, P[j])) \\ Charles R Greathouse IV, Jun 27 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Patrick De Geest, Jun 15 1998
STATUS
approved