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-5 of 5 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.

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.

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)

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

Original entry on oeis.org

73, 521, 577, 4673, 32833, 33289, 33353, 36929, 37441, 262153, 262217, 262657, 295433, 2097673, 2101313, 2359369, 2363401, 2392073, 16777289, 16810049, 16814089, 16814153, 16814657, 17039881, 17043977, 17076809, 18874433, 18907201, 19137089, 19140617, 134222401, 134483969, 134484481, 134513161
Offset: 1

Views

Author

M. F. Hasler, Jan 11 2014

Keywords

Comments

This sequence is part of the two-dimensional array of sequences 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.
When the smaller base is b=2 such that only digits 0 and 1 are allowed, these are primes that are the sum of distinct powers of the larger base, here c=8, thus a subsequence of A077722.

Examples

			73 = 111_8 and 111_2 = 7 are both prime, so 73 is a term.
		

Crossrefs

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

Programs

  • PARI
    is(p,b=2,c=8)=vecmax(d=digits(p,c))
    				
  • PARI
    forprime(p=1,1e3,is(p,8,2)&&print1(vector(#d=digits(p,2),i,8^(#d-i))*d~,",")) \\ To produce the terms, this is much more efficient than to select them using straightforwardly is(.)=is(.,2,8)

A235480 Primes whose base-3 representation is also the base-9 representation of a prime.

Original entry on oeis.org

2, 5, 7, 11, 17, 19, 23, 31, 37, 41, 43, 53, 67, 71, 73, 83, 89, 97, 103, 149, 157, 199, 239, 251, 257, 271, 277, 293, 307, 313, 331, 337, 359, 383, 397, 421, 431, 433, 499, 541, 557, 571, 587, 599, 601, 613, 631, 653, 659, 661, 683, 691, 709, 727, 751, 769, 823, 887, 911, 983, 1009, 1021, 1031, 1049, 1051, 1063, 1129, 1163, 1217
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.
Appears to be a subsequence of A015919, A045344, A052085, A064555 and A143578.

Examples

			5 = 12_3 and 12_9 = 11 are both prime, so 5 is a term.
		

Crossrefs

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

Programs

  • Mathematica
    Select[Prime@ Range@ 500, PrimeQ@ FromDigits[ IntegerDigits[#, 3], 9] &] (* Giovanni Resta, Sep 12 2019 *)
  • PARI
    is(p,b=9,c=3)=isprime(vector(#d=digits(p,c),i,b^(#d-i))*d~)&&isprime(p) \\ Note: Code only valid for b > c.
Showing 1-5 of 5 results.