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-2 of 2 results.

A036964 Primes with digits (0,...,8) taken as base 9 and converted to base 10.

Original entry on oeis.org

2, 3, 5, 7, 10, 12, 16, 21, 28, 34, 37, 39, 43, 48, 55, 61, 64, 66, 75, 82, 84, 88, 93, 106, 109, 115, 127, 133, 138, 142, 147, 154, 172, 183, 187, 192, 199, 208, 214, 219, 226, 232, 235, 237, 250, 253, 255, 259, 271, 277, 286, 291, 304, 309, 318, 325, 343, 352
Offset: 1

Views

Author

Patrick De Geest, Jan 04 1999

Keywords

Examples

			a(n)=343 -> is 421{9} -> 421{10} is prime.
		

Crossrefs

Extensions

Offset 1 from Michel Marcus, Oct 10 2019

A065726 Primes p whose base-8 expansion is also the decimal expansion of a prime.

Original entry on oeis.org

2, 3, 5, 7, 11, 19, 31, 43, 59, 67, 71, 89, 137, 151, 179, 191, 199, 223, 251, 257, 281, 283, 307, 311, 337, 353, 359, 367, 383, 409, 419, 433, 443, 449, 523, 563, 617, 619, 641, 659, 727, 787, 809, 811, 857, 887, 907, 919, 947, 977, 1033, 1039, 1097, 1123
Offset: 1

Views

Author

Patrick De Geest, Nov 15 2001

Keywords

Comments

In general rebase notation (Marc LeBrun): p8 = (8) [p] (10).

Examples

			E.g., 787_10 = 1423_8 is prime, and so is 1423_10.
		

Crossrefs

Primes in A036963.
Cf. A065720 up to A065727, A065361.
Cf. A090707 - A091924, A235461 - A235482. See the LINK for further cross-references.

Programs

  • Mathematica
    Select[ Range[2500], PrimeQ[ # ] && PrimeQ[ FromDigits[ IntegerDigits[ #, 8]]] & ]
  • PARI
    is(p, b=10, c=8)=isprime(vector(#d=digits(p, c), i, b^(#d-i))*d~)&&isprime(p) \\ This code can be used for other bases b, c when b>c. See A235265 for code also valid for bM. F. Hasler, Jan 12 2014

Extensions

Definition clarified by M. F. Hasler, Jan 12 2014
Showing 1-2 of 2 results.