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.

A333422 Factorial base emirps: prime numbers whose factorial base reversal is a different prime.

Original entry on oeis.org

29, 37, 137, 181, 733, 743, 769, 977, 1013, 1031, 1033, 1049, 5107, 5119, 5171, 5179, 5233, 5273, 5297, 5323, 5387, 5393, 5399, 5407, 5437, 5441, 5449, 5471, 5477, 5483, 6571, 6607, 6689, 6691, 6709, 6719, 6733, 6763, 6803, 6823, 6829, 6907, 6947, 6949, 40343
Offset: 1

Views

Author

Amiram Eldar, Mar 20 2020

Keywords

Examples

			29 is a term since it is a prime number and its representation in factorial base is 1021, whose reversal, 1201, is the factorial base representation of another prime number, 37.
		

Crossrefs

Programs

  • Mathematica
    max = 8; bases = Range[max, 2, -1]; nmax = max! - 1; emirpQ[n_] := PrimeQ[n] && Module[{d = IntegerDigits[n, MixedRadix[bases]]}, r = Reverse @ d; IntegerDigits[(m = FromDigits[r, MixedRadix[bases]]), MixedRadix[bases]] == r && m != n && PrimeQ[m]]; Select[Range[nmax], emirpQ]

A333424 Primes that are palindromes in primorial base.

Original entry on oeis.org

3, 7, 11, 31, 47, 211, 223, 229, 281, 293, 2311, 2347, 2383, 2843, 2879, 30091, 30181, 30211, 30307, 30367, 30427, 30493, 30553, 30643, 30829, 30859, 34871, 34961, 35051, 35117, 35267, 35363, 35393, 35423, 510751, 511711, 513067, 513307, 515143, 517459, 518179
Offset: 1

Views

Author

Amiram Eldar, Mar 20 2020

Keywords

Examples

			3 is a term since it is a prime number and its representation in primorial base is 11 (1 * 2# + 1) which is a palindrome.
		

Crossrefs

Programs

  • Mathematica
    max = 8; bases = Prime @ Range[max, 1, -1]; nmax = Times @@ bases - 1; Select[Range[nmax], PrimeQ[#] && PalindromeQ @ IntegerDigits[#, MixedRadix[bases]] &]
Showing 1-2 of 2 results.