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.

Showing 1-4 of 4 results.

A231075 Primes with a prime number of letters (A005589) in their (American) English name.

Original entry on oeis.org

2, 3, 7, 23, 37, 79, 83, 97, 101, 131, 149, 181, 191, 269, 281, 307, 337, 379, 383, 397, 419, 461, 541, 577, 601, 617, 631, 659, 691, 727, 733, 787, 797, 823, 827, 883, 887, 911, 919, 941, 977, 1013, 1019, 1051, 1061, 1129, 1151, 1153, 1163, 1171
Offset: 1

Views

Author

M. F. Hasler, Nov 03 2013

Keywords

Comments

Spaces and hyphens don't count, as in A005589. See A163648 and A231073 for the analogs counting syllables resp. words.
Sequence A072686 is the British English analog, which in particular uses the additional "and": It features "one hundred and nine", but not "one hundred and one". In the present sequence, we do have "one hundred one" but not "one hundred nine".

Programs

  • PARI
    is(p)=isprime(A005589(p))&&isprime(p)
    
  • PARI
    forprime(p=1,1200,isprime(A005589(p))&&print1(p","))

A072687 Number of primes with prime length names in range 1 -> 10^n.

Original entry on oeis.org

3, 8, 39, 269, 3047, 14288, 140205, 1567591, 10764655
Offset: 1

Views

Author

Mark Hudson (mrmarkhudson(AT)hotmail.com), Jul 02 2002

Keywords

Comments

This sequence uses "and" (e.g., "one hundred and one") and does not count spaces, commas, or hyphens. - Michael S. Branicky, Mar 08 2021

Examples

			E.g., from the sequence of the valid primes (A072686) there are three prime-length primes between 1 and 10: 2,3,7; therefore a(1)=3.
23 ("twentythree", 11 letters) and 109 ("one hundred and nine", 17 letters) are counted.
		

Crossrefs

Cf. A072686.

Programs

  • Python
    from num2words import num2words
    from sympy import isprime, primerange
    def n2w(n):
      return num2words(n).replace(chr(44), "").replace(" ", "").replace("-", "")
    def a(n): return sum(isprime(len(n2w(p))) for p in primerange(2, 10**n))
    print([a(n) for n in range(1, 7)]) # Michael S. Branicky, Mar 08 2021

Extensions

a(6)-a(8) from Sean A. Irvine, Nov 08 2011
a(8) corrected by Sean A. Irvine, Apr 28 2019
a(8) corrected and a(9) from Michael S. Branicky, Mar 08 2021

A161379 Prime numbers whose Spanish names have a prime number of letters.

Original entry on oeis.org

2, 5, 7, 13, 29, 31, 37, 43, 61, 67, 71, 79, 89, 97, 107, 109, 113, 127, 131, 137, 139, 151, 167, 179, 181, 191, 197, 199, 239, 251, 269, 277, 373, 383, 419, 521, 569, 577, 587, 599, 641, 673, 683, 733, 773, 863, 883, 941, 983
Offset: 1

Views

Author

Claudio Meller, Jun 08 2009

Keywords

Comments

Spanish version of A072686.

Examples

			e.g 137 ->  CIENTOTREINTAYSIETE -> 19 letters and 19 is prime.
		

Crossrefs

Cf. A072686.

A161548 Prime numbers whose English names have a composite number of letters.

Original entry on oeis.org

5, 11, 13, 17, 19, 29, 31, 41, 43, 47, 53, 59, 61, 67, 71, 73, 89, 103, 107, 109, 113, 127, 137, 139, 151, 157, 163, 167, 173, 179, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 271, 277, 283, 293
Offset: 1

Views

Author

Claudio Meller, Jun 13 2009

Keywords

Crossrefs

Showing 1-4 of 4 results.