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-30 of 47 results. Next

A231479 Primes whose base-7 representation is also the base-9 representation of a prime.

Original entry on oeis.org

2, 3, 5, 11, 19, 23, 29, 37, 47, 67, 71, 89, 103, 107, 113, 127, 137, 163, 179, 239, 257, 313, 337, 347, 389, 401, 431, 457, 463, 499, 523, 547, 569, 571, 617, 709, 719, 739, 743, 751, 757, 761, 821, 823, 859, 883, 887, 971, 1019, 1069, 1093, 1129, 1153, 1213, 1297, 1307, 1327, 1367, 1373, 1381
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.

Examples

			11 = 14_7 and 14_9 = 13 are both prime, so 11 is a term.
		

Crossrefs

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

Programs

  • Mathematica
    Select[Prime@ Range@ 250, PrimeQ@ FromDigits[IntegerDigits[#, 7], 9] &] (* Giovanni Resta, Sep 12 2019 *)
  • PARI
    is(p,b=9,c=7)=isprime(vector(#d=digits(p,c),i,b^(#d-i))*d~)&&isprime(p) \\ Note: This code is only valid for b > c.

A231480 Primes whose base-8 representation is also the base-9 representation of a prime.

Original entry on oeis.org

2, 3, 5, 7, 17, 37, 53, 79, 89, 109, 127, 223, 263, 277, 367, 389, 433, 439, 457, 479, 521, 541, 577, 593, 709, 727, 757, 911, 953, 967, 983, 1061, 1097, 1117, 1151, 1153, 1297, 1447, 1567, 1583, 1601, 1637, 1693, 1709, 1801, 1879, 1933, 1951, 2017, 2069, 2081, 2213, 2269
Offset: 1

Views

Author

M. F. Hasler, Jan 13 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.

Examples

			17 = 21_8 and 21_9 = 19 are both prime, so 17 is a term.
		

Crossrefs

Cf. A235620, A235265, A235266, A152079, A235461 - A235482, A065720 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924, A235615 - A235639. See the LINK for further cross-references.

Programs

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

A231481 Primes whose base-6 representation is also the base-9 representation of a prime.

Original entry on oeis.org

2, 3, 5, 13, 17, 29, 59, 67, 71, 73, 97, 127, 191, 199, 223, 227, 239, 307, 337, 349, 353, 367, 409, 421, 433, 449, 461, 479, 487, 491, 563, 571, 577, 619, 647, 683, 739, 743, 811, 823, 829, 857, 881, 911, 937, 941, 991, 1021, 1051, 1091, 1103, 1117, 1163, 1201, 1217, 1259, 1277, 1289
Offset: 1

Views

Author

M. F. Hasler, Jan 13 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.

Examples

			13 = 21_6 and 21_9 = 19 are both prime, so 13 is a term.
		

Crossrefs

Cf. A235639, A235265, A235266, A152079, A235461 - A235482, A065720 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924, A235615 - A235639. See the LINK for further cross-references.

Programs

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

A235617 Primes whose base-7 representation also is the base-4 representation of a prime.

Original entry on oeis.org

2, 3, 17, 59, 71, 73, 113, 353, 367, 449, 463, 491, 701, 743, 757, 787, 857, 1039, 1151, 1193, 2411, 2423, 2467, 2551, 2843, 3109, 3137, 3209, 3251, 4817, 4903, 5209, 5657, 5839, 5939, 5953, 7211, 7603, 7703, 8009, 8039, 8291, 8387, 16831, 16871, 16927, 17207, 17321, 17837, 19211, 19267, 20261, 20287, 22123, 22303
Offset: 1

Views

Author

M. F. Hasler, Jan 13 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.

Examples

			E.g., 17 = 23_7 and 23_4 = 11 are both prime.
		

Crossrefs

Cf. A235634, A235265, A235266, A152079, A235461 - A235482, A065720 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924, A235615 - A235639. See the LINK for further cross-references.

Programs

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

A235618 Primes whose base-8 representation also is the base-4 representation of a prime.

Original entry on oeis.org

2, 3, 11, 19, 67, 89, 137, 211, 523, 593, 641, 659, 1097, 1163, 1627, 1667, 1747, 4177, 4673, 4691, 5323, 5657, 5659, 5779, 5827, 5849, 8209, 8387, 8779, 8849, 9227, 9241, 9283, 9433, 9803, 9817, 9859, 9883, 9929, 12289, 12377, 12433, 12491, 12953, 13003, 13331, 13339, 13441
Offset: 1

Views

Author

M. F. Hasler, Jan 13 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.

Examples

			E.g., 11 = 13_8 and 13_4 = 7 are both prime.
		

Crossrefs

Cf. A235633, A235265, A235266, A152079, A235461 - A235482, A065720 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924, A235615 - A235639. See the LINK for further cross-references.

Programs

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

A235620 Primes whose base-9 representation also is the base-8 representation of a prime.

Original entry on oeis.org

2, 3, 5, 7, 19, 41, 59, 97, 109, 131, 151, 277, 331, 347, 457, 491, 541, 547, 577, 601, 739, 761, 811, 829, 977, 997, 1031, 1231, 1279, 1303, 1321, 1499, 1549, 1571, 1609, 1621, 1801, 1987, 2221, 2239, 2269, 2309, 2381, 2399, 2521, 2617, 2687, 2707, 2791, 2939, 2953, 3119
Offset: 1

Views

Author

M. F. Hasler, Jan 13 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.

Examples

			19 is a term: 19 = 21_9 and 21_8 = 17, also a prime.
79 is not a term: 79 = 87_9 and 87 is not a valid base-8 representation.
		

Crossrefs

Cf. A231480, A235265, A235266, A152079, A235461 - A235482, A065720 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924, A235615 - A235639. See the LINK for further cross-references.

Programs

  • Mathematica
    b9b8pQ[n_]:=Module[{id=IntegerDigits[n,9]},Max[id]<8&&PrimeQ[FromDigits[ id,8]]]; Select[Prime[Range[500]],b9b8pQ] (* Harvey P. Dale, Mar 12 2018 *)
  • PARI
    is(p,b=8,c=9)=vecmax(d=digits(p,c))
    				
  • PARI
    forprime(p=1,3e3,is(p,9,8)&&print1(vector(#d=digits(p,8),i,9^(#d-i))*d~,",")) \\ To produce the terms, this is more efficient than to select them using straightforwardly is(.)=is(.,8,9)
    
  • PARI
    isok(p) = isprime(p) && (q = digits(p, 9)) && (vecmax(q) < 8) && isprime(fromdigits(q, 8)); \\ Michel Marcus, Mar 12 2018

A235621 Primes whose base-9 representation also is the base-7 representation of a prime.

Original entry on oeis.org

2, 3, 5, 13, 23, 29, 37, 47, 59, 103, 109, 131, 167, 173, 181, 199, 211, 263, 283, 379, 419, 509, 541, 733, 787, 821, 859, 911, 919, 983, 1013, 1063, 1091, 1093, 1171, 1487, 1499, 1543, 1549, 1559, 1567, 1571, 1667, 1669, 1733, 1783, 1787, 1913, 1993, 2237, 2287, 2351, 2381, 2477, 2621
Offset: 1

Views

Author

M. F. Hasler, Jan 13 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.

Examples

			E.g., 13 = 14_9 and 14_7 = 11 are both prime.
		

Crossrefs

Cf. A231479, A235265, A235266, A152079, A235461 - A235482, A065720 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924, A235615 - A235639. See the LINK for further cross-references.

Programs

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

A235622 Primes whose base-8 representation also is the base-7 representation of a prime.

Original entry on oeis.org

2, 3, 5, 19, 53, 89, 109, 131, 257, 293, 307, 347, 349, 433, 523, 557, 683, 739, 811, 853, 881, 907, 937, 941, 1061, 1097, 1117, 1201, 1427, 1621, 1693, 1733, 1747, 1861, 1873, 1889, 1907, 2141, 2267, 2341, 2467, 2677, 2699, 2803, 2861, 2917, 2953, 3163, 3253, 3307, 3433
Offset: 1

Views

Author

M. F. Hasler, Jan 13 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.

Examples

			E.g., 19 = 23_8 and 23_7 = 17 are both prime.
		

Crossrefs

Cf. A235630, A235265, A235266, A152079, A235461 - A235482, A065720 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924, A235615 - A235639. See the LINK for further cross-references.

Programs

  • Mathematica
    pb87Q[n_]:=Module[{idn8=IntegerDigits[n,8]},Max[idn8]<7&&PrimeQ[ FromDigits[ idn8,7]]]; Select[Prime[Range[500]],pb87Q] (* Harvey P. Dale, Dec 13 2016 *)
  • PARI
    is(p,b=7,c=8)=vecmax(d=digits(p,c))
    				
  • PARI
    forprime(p=1,3e3,is(p,8,7)&&print1(vector(#d=digits(p,7),i,8^(#d-i))*d~,",")) \\ To produce the terms, this is more efficient than to select them using straightforwardly is(.)=is(.,7,8)

A235624 Primes whose base-4 representation is also the base-6 representation of a prime.

Original entry on oeis.org

2, 3, 5, 13, 17, 37, 61, 73, 109, 157, 173, 181, 229, 233, 241, 257, 317, 337, 349, 373, 397, 409, 541, 557, 569, 601, 613, 661, 761, 769, 797, 821, 857, 953, 1013, 1021, 1033, 1069, 1153, 1181, 1193, 1201, 1229, 1237, 1297, 1321, 1373, 1429, 1481, 1609, 1621, 1637, 1709, 1801, 1861, 1877, 1889, 1901, 1973
Offset: 1

Views

Author

M. F. Hasler, Jan 13 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.

Examples

			5 = 11_4 and 11_6 = 7 are both prime, so 5 is a term.
		

Crossrefs

Cf. A235616, A235265, A235266, A152079, A235461 - A235482, A065720 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924, A235615 - A235639. See the LINK for further cross-references.

Programs

  • Mathematica
    Select[Prime@ Range@ 500, PrimeQ@ FromDigits[ IntegerDigits[#, 4], 6] &] (* Giovanni Resta, Sep 12 2019 *)
  • PARI
    is(p,b=6,c=4)=isprime(vector(#d=digits(p,c),i,b^(#d-i))*d~)&&isprime(p) \\ Note: This code is only valid for b > c.

A235625 Primes whose base-5 representation is also the base-6 representation of a prime.

Original entry on oeis.org

2, 3, 11, 31, 71, 131, 191, 211, 241, 251, 271, 331, 421, 431, 461, 491, 541, 601, 631, 811, 821, 911, 971, 1031, 1051, 1061, 1171, 1181, 1201, 1231, 1291, 1321, 1361, 1451, 1511, 1531, 1571, 1601, 1721, 1801, 1811, 1831, 1861, 1931, 2081, 2111, 2131, 2141, 2311, 2341, 2381, 2411, 2521, 2531, 2711, 2741, 2801
Offset: 1

Views

Author

M. F. Hasler, Jan 13 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.

Examples

			11 = 21_5 and 21_6 = 13 are both prime, so 11 is a term.
		

Crossrefs

Cf. A235626, A235265, A235266, A152079, A235461 - A235482, A065720 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924, A235615 - A235639. See the LINK for further cross-references.

Programs

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