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

A235473 Primes whose base-3 representation is also the base-4 representation of a prime.

Original entry on oeis.org

2, 43, 61, 67, 97, 103, 127, 139, 151, 157, 199, 211, 229, 277, 283, 331, 337, 349, 373, 379, 433, 439, 463, 499, 523, 571, 601, 607, 727, 751, 787, 823, 853, 883, 919, 991, 1063, 1087, 1117, 1213, 1249, 1327, 1381, 1429, 1483, 1531, 1567, 1597, 1627, 1759, 1783, 1867, 1999
Offset: 1

Views

Author

M. F. Hasler, Jan 12 2014

Keywords

Comments

This sequence is part of a two-dimensional array of sequences, given in the LINK, based on this same idea for any two different bases b, c > 1. Sequence A235265 and A235266 are the most elementary ones in this list. Sequences A089971, A089981 and A090707 through A090721, and sequences A065720 - A065727, follow the same idea with one base equal to 10.
This is a subsequence of A045331 and A045375.

Examples

			43 = 1121_3 and 1121_4 = 89 are both prime, so 43 is a term.
		

Crossrefs

Cf. A235266, A235474, A152079, A235475 - A235479, A065720A036952, A065721 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924, A235461 - A235482. See the LINK for further cross-references.

Programs

  • Mathematica
    Select[Prime[Range[400]],PrimeQ[FromDigits[IntegerDigits[#,3],4]]&] (* Harvey P. Dale, Oct 16 2015 *)
  • PARI
    is(p,b=4,c=3)=isprime(vector(#d=digits(p,c),i,b^(#d-i))*d~)&&isprime(p) \\ Note: This code is only valid for b > c.

A235479 Primes whose base-2 representation also is the base-9 representation of a prime.

Original entry on oeis.org

11, 13, 19, 41, 79, 109, 137, 151, 167, 191, 193, 199, 227, 239, 271, 307, 313, 421, 431, 433, 457, 487, 491, 521, 563, 613, 617, 659, 677, 709, 727, 757, 929, 947, 1009, 1033, 1051, 1249, 1483, 1693, 1697, 1709, 1721, 1831, 1951, 1979, 1987, 1993
Offset: 1

Views

Author

M. F. Hasler, Jan 12 2014

Keywords

Comments

This sequence is part of a two-dimensional array of sequences, given in the LINK, based on this same idea for any two different bases b, c > 1. Sequence A235265 and A235266 are the most elementary ones in this list. Sequences A089971, A089981 and A090707 through A090721, and sequences A065720 - A065727, follow the same idea with one base equal to 10.
For further motivation and cross-references, see sequence A235265 which is the main entry for this whole family of sequences.
A subsequence of A027697, A050150, A062090 and A176620.

Examples

			11 = 1011_2 and 1011_9 = 6571 are both prime, so 11 is a term.
		

Crossrefs

Cf. A235466A077723, A235266, A152079, A235475 - A235478, A065720A036952, A065721 - A065727, A089971A020449, A089981, A090707 - A091924, A235394, A235395, A235461 - A235482. See the LINK for further cross-references.

Programs

  • PARI
    is(p,b=9)=isprime(vector(#d=binary(p),i,b^(#d-i))*d~)&&isprime(p)

A235474 Primes whose base-4 representation is also the base-5 representation of a prime.

Original entry on oeis.org

2, 3, 11, 29, 31, 41, 101, 109, 139, 149, 151, 181, 199, 229, 239, 251, 269, 271, 281, 389, 409, 491, 509, 541, 547, 661, 751, 887, 911, 947, 991, 1021, 1051, 1061, 1069, 1091, 1151, 1279, 1289, 1381, 1409, 1471, 1549, 1709, 1759, 1801, 1999
Offset: 1

Views

Author

M. F. Hasler, Jan 12 2014

Keywords

Comments

This sequence is part of a two-dimensional array of sequences, given in the LINK, based on this same idea for any two different bases b, c > 1. Sequence A235265 and A235266 are the most elementary ones in this list. Sequences A089971, A089981 and A090707 through A090721, and sequences A065720 - A065727, follow the same idea with one base equal to 10.
For further motivation and cross-references, see sequence A235265 which is the main entry for this whole family of sequences.

Examples

			11 = 23_4 and 23_5 = 13 are both prime, so 11 is a term.
		

Crossrefs

Cf. A235266, A235473, A152079, A235475 - A235479, A065720A036952, A065721 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924, A235461 - A235482. See the LINK for further cross-references.

Programs

  • Mathematica
    Select[Prime[Range[400]],PrimeQ[FromDigits[IntegerDigits[#,4],5]]&] (* Harvey P. Dale, Dec 31 2017 *)
  • PARI
    is(p,b=5,c=4)=isprime(vector(#d=digits(p,c),i,b^(#d-i))*d~)&&isprime(p) \\ Note: This code is only valid for b > c.

A235477 Primes whose base-2 representation also is the base-7 representation of a prime.

Original entry on oeis.org

2, 31, 47, 59, 103, 107, 173, 179, 181, 199, 211, 227, 229, 233, 367, 409, 443, 463, 487, 701, 743, 757, 823, 827, 877, 911, 919, 967, 1009, 1123, 1163, 1291, 1321, 1367, 1373, 1447, 1493, 1571, 1583, 1597, 1609, 1627, 1657, 1669, 1721, 1831, 1933, 1987
Offset: 1

Views

Author

M. F. Hasler, Jan 12 2014

Keywords

Comments

This sequence is part of a two-dimensional array of sequences, given in the LINK, based on this same idea for any two different bases b, c > 1. Sequence A235265 and A235266 are the most elementary ones in this list. Sequences A089971, A089981 and A090707 through A090721, and sequences A065720 - A065727, follow the same idea with one base equal to 10.
For further motivation and cross-references, see sequence A235265 which is the main entry for this whole family of sequences.
A subsequence of A027697, A015919, A197636 (conjectural).

Examples

			31 = 11111_2 and 11111_7 = 2801 are both prime, so 31 is a term.
		

Crossrefs

Cf. A235464A077721, A235475, A152079, A235266, A065720A036952, A065721 - A065727, A089971A020449, A089981, A090707 - A091924, A235394, A235395, A235461 - A235482. See the LINK for further cross-references.

Programs

  • Mathematica
    Select[Prime[Range[300]],PrimeQ[FromDigits[IntegerDigits[#,2],7]]&] (* Harvey P. Dale, May 08 2021 *)
  • PARI
    is(p,b=7)=isprime(vector(#d=binary(p),i,b^(#d-i))*d~)&&isprime(p)

A235478 Primes whose base-2 representation also is the base-8 representation of a prime.

Original entry on oeis.org

7, 11, 13, 29, 37, 43, 47, 53, 61, 67, 71, 73, 107, 139, 149, 199, 211, 227, 263, 293, 307, 311, 317, 331, 347, 383, 389, 421, 461, 467, 541, 593, 601, 619, 641, 643, 739, 811, 863, 907, 937, 1061, 1069, 1093, 1117, 1163, 1223, 1283, 1301, 1319, 1321, 1409, 1433, 1439, 1489, 1499, 1523, 1559, 1619, 1697, 1811, 1861, 1879
Offset: 1

Views

Author

M. F. Hasler, Jan 12 2014

Keywords

Comments

This sequence is part of a two-dimensional array of sequences, given in the LINK, based on this same idea for any two different bases b, c > 1. Sequence A235265 and A235266 are the most elementary ones in this list. Sequences A089971, A089981 and A090707 through A090721, and sequences A065720 - A065727, follow the same idea with one base equal to 10.
For further motivation and cross-references, see sequence A235265 which is the main entry for this whole family of sequences.
Appears to be a subsequence of A050150, A062090 and A216285.

Examples

			11 = 1011_2 and 1011_8 = 521 are both prime, so 11 is a term.
		

Crossrefs

Cf. A235465A077722, A235266, A152079, A235475 - A235479, A065720A036952, A065721 - A065727, A089971A020449, A089981, A090707 - A091924, A235394, A235395, A235461 - A235482. See the LINK for further cross-references.

Programs

  • Mathematica
    Select[Prime[Range[300]],PrimeQ[FromDigits[IntegerDigits[#,2],8]]&] (* Harvey P. Dale, Sep 25 2015 *)
  • PARI
    is(p,b=8)=isprime(vector(#d=binary(p),i,b^(#d-i))*d~)&&isprime(p)

A262832 {2,5}-primes (defined in Comments).

Original entry on oeis.org

2, 11, 13, 41, 151, 173, 181, 191, 223, 233, 241, 313, 331, 421, 443, 463, 541, 563, 641, 701, 733, 743, 953, 1373, 1451, 1471, 1483, 1753, 1783, 1831, 1993, 2011, 2143, 2161, 2351, 2411, 2693, 3041, 3061, 3491, 3571, 3623, 3761, 3943, 4051, 4373, 4643, 4813
Offset: 1

Views

Author

Clark Kimberling, Oct 31 2015

Keywords

Comments

Let S = {b(1), b(2), ..., b(k)}, where k > 1 and b(i) are distinct integers > 1 for j = 1..k. Call p an S-prime if the digits of p in base b(i) spell a prime in each of the bases b(j) in S, for i = 1..k. Equivalently, p is an S-prime if p is a strong-V prime (defined at A262729) for every permutation of the vector V = (b(1), b(2), ..., b(k)).

Crossrefs

Programs

  • Mathematica
    {b1, b2} = {2, 5};
    u = Select[Prime[Range[6000]], PrimeQ[FromDigits[IntegerDigits[#, b1], b2]] &]; (* A235475 *)
    v = Select[Prime[Range[6000]], PrimeQ[FromDigits[IntegerDigits[#, b2], b1]] &]; (* A262831 *)
    w = Intersection[u, v]; (* A262832 *)
    (* Peter J. C. Moses, Sep 27 2015 *)

A262831 (5,2)-primes (defined in Comments).

Original entry on oeis.org

2, 3, 5, 11, 13, 23, 31, 41, 43, 53, 61, 71, 73, 83, 101, 103, 113, 131, 151, 163, 173, 181, 191, 223, 233, 241, 251, 263, 281, 293, 311, 313, 331, 373, 383, 401, 421, 433, 443, 461, 463, 491, 521, 523, 541, 563, 593, 631, 641, 653, 673, 683, 691, 701, 733
Offset: 1

Views

Author

Clark Kimberling, Oct 31 2015

Keywords

Comments

Let V = (b(1), b(2), ..., b(k)), where k > 1 and b(i) are distinct integers > 1 for j = 1..k. Call p a V-prime if the digits of p in base b(1) spell a prime in each of the bases b(2), ..., b(k).

Crossrefs

Programs

  • Mathematica
    {b1, b2} = {2, 5};
    u = Select[Prime[Range[6000]], PrimeQ[FromDigits[IntegerDigits[#, b1], b2]] &];
    (* A235475 *)
    v = Select[Prime[Range[6000]], PrimeQ[FromDigits[IntegerDigits[#, b2], b1]] &];
    (* A262831 *)
    w = Intersection[u, v]; (* A262832 *)
    (* Peter J. C. Moses, Sep 27 2015 *)

A235476 Primes whose base-2 representation also is the base-6 representation of a prime.

Original entry on oeis.org

3, 5, 7, 11, 17, 19, 29, 41, 53, 67, 101, 127, 193, 263, 281, 337, 353, 431, 461, 479, 487, 499, 523, 593, 599, 631, 743, 757, 773, 821, 823, 829, 857, 883, 887, 941, 1013, 1021, 1093, 1117, 1259, 1279, 1303, 1367, 1373, 1429, 1439, 1459, 1471, 1483, 1493, 1511, 1583, 1619, 1699, 1759, 1831, 1847, 1879, 1931, 1951, 1987
Offset: 1

Views

Author

M. F. Hasler, Jan 12 2014

Keywords

Comments

This sequence is part of a two-dimensional array of sequences, given in the LINK, based on this same idea for any two different bases b, c > 1. Sequence A235265 and A235266 are the most elementary ones in this list. Sequences A089971, A089981 and A090707 through A090721, and sequences A065720 - A065727, follow the same idea with one base equal to 10.
For further motivation and cross-references, see sequence A235265 which is the main entry for this whole family of sequences.

Examples

			5 = 101_2 and 101_6 = 37 are both prime, so 5 is a term.
7 = 111_2 and 111_6 = 43 are both prime, so 7 is a term.
		

Crossrefs

Cf. A235463A077720, A235475, A152079, A235266, A065720A036952, A065721 - A065727, A089971A020449, A089981, A090707 - A091924, A235394, A235395, A235461 - A235482. See the LINK for further cross-references.

Programs

  • Mathematica
    Select[Prime[Range[300]],PrimeQ[FromDigits[IntegerDigits[#,2],6]]&] (* Harvey P. Dale, Jan 03 2022 *)
  • PARI
    is(p,b=6)=isprime(vector(#d=binary(p),i,b^(#d-i))*d~)&&isprime(p)
Showing 1-8 of 8 results.