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.

A072555 Smallest of four consecutive integers divisible by four consecutive primes respectively.

Original entry on oeis.org

158, 368, 578, 788, 789, 790, 998, 1208, 1418, 1628, 1838, 1944, 2048, 2258, 2468, 2678, 2888, 3098, 3099, 3308, 3518, 3728, 3938, 4148, 4254, 4358, 4367, 4568, 4778, 4988, 5198, 5408, 5409, 5618, 5795, 5828, 6038, 6248, 6458, 6564, 6668, 6797, 6878
Offset: 1

Views

Author

Robert G. Wilson v, Aug 06 2002

Keywords

Examples

			158 is a term as 158, 159, 160 and 161 are divisible by 2, 3, 5 and 7 respectively.
		

Crossrefs

Programs

  • Mathematica
    f[ n_Integer ] := Flatten[ Table[ #1 ] & @@@ FactorInteger[ n ] ]; NextPrim[ n_ ] := Block[ {k = n + 1}, While[ !PrimeQ[ k ], k++ ]; k ]; Do[ p = f[ n ]; l = Length[ p ]; t = Table[ n + i, {i, 0, 3} ]; k = 1; While[ k < l + 1 && Union[ Mod[ t, NestList[ NextPrim, p[ [ k ] ], 3 ] ] ] != {0}, k++ ]; If[ k < l + 1, Print[ n ] ], {n, 2, 7297} ]