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.

A057017 Numbers k such that the product of the first k composite numbers minus 1 is a prime.

Original entry on oeis.org

1, 2, 3, 9, 12, 22, 26, 30, 34, 51, 54, 100, 125, 155, 168, 173, 220, 401, 494, 2161, 2539, 2866, 7625, 9644, 12099, 13470, 16078, 18587, 30075, 37067
Offset: 1

Views

Author

Robert G. Wilson v, Apr 21 2001

Keywords

Examples

			a(3) = 3 because 4*6*8-1 = 191 which is prime.
		

Crossrefs

Programs

  • Mathematica
    Composite[ n_Integer ] := (k = n + PrimePi[ n ] + 1; While[ k - PrimePi[ k ] - 1 != n, k++ ]; k); Do[ m = n; If[ PrimeQ[ Product[ Composite[ k ], {k, 1, n} ] - 1 ], Print[ n ] ], {n, 1, 1980} ]

Extensions

More terms via A049421 from Jeppe Stig Nielsen, Aug 12 2024