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.

Previous Showing 21-22 of 22 results.

A216312 The prime ending in 9 is the only prime in a decade.

Original entry on oeis.org

149, 419, 479, 719, 809, 839, 929, 1009, 1049, 1249, 1259, 1319, 1399, 1409, 1709, 1889, 1949, 2039, 2099, 2129, 2179, 2309, 2459, 2579, 2609, 2729, 2789, 2819, 2879, 2939, 2999, 3079, 3109, 3119, 3299, 3359, 3389, 3449, 3659, 3719, 3779, 3989, 4049, 4229
Offset: 1

Views

Author

V. Raman, Sep 03 2012

Keywords

Comments

Primes of the form 10n+9 such that 10n+1, 10n+3, and 10n+7 are composite. - Charles R Greathouse IV, Sep 06 2012

Examples

			149 is prime but 141, 143 and 147 are all composite (being 3 * 47, 11 * 13 and 3 * 7^2 respectively), thus 149 is in the sequence.
		

Crossrefs

Subsequence of A030433. Cf. A032352, A007811, A078494, A030433.

Programs

  • Magma
    [p: p in PrimesUpTo(4300) | p mod 10 eq 9 and IsOne(#PrimesInInterval(10*t+1, 10*t+9)) where t is Floor(p/10)]; // Bruno Berselli, Sep 14 2012
  • Mathematica
    Select[Prime[Range[700]], Mod[#, 10] == 9 && Union[PrimeQ[{# - 8, # - 6, # - 2}]] == {False} &] (* Alonso del Arte, Sep 03 2012 *)
    Select[Table[10n+{1,3,7,9},{n,450}],Boole[PrimeQ[#]]=={0,0,0,1}&][[;;,4]] (* Harvey P. Dale, Mar 08 2023 *)

Formula

a(n) ~ 4n log n. - Charles R Greathouse IV, Sep 06 2012

A216289 Smallest k in which there are exactly n primes between 10*k and 10*k+9.

Original entry on oeis.org

20, 9, 2, 4, 0
Offset: 0

Views

Author

V. Raman, Sep 03 2012

Keywords

Crossrefs

Programs

  • Mathematica
    mx = 5; t = Table[-1, {mx}]; n = 0; found = 0; While[found < mx, ps = Select[Range[10*n, 10*n + 9], PrimeQ]; len = Length[ps]; If[t[[len + 1]] == -1, t[[len + 1]] = n; found++]; n++]; t (* T. D. Noe, Sep 03 2012 *)
Previous Showing 21-22 of 22 results.