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.

A076702 Distinct-digit prime powers of prime numbers.

Original entry on oeis.org

4, 8, 9, 25, 27, 32, 49, 125, 128, 169, 243, 289, 361, 529, 841, 961, 1369, 1849, 2048, 2187, 2197, 2809, 3125, 3481, 3721, 4913, 5041, 5329, 6241, 6859, 7921, 8192, 12769, 16807, 18769, 24389, 32041, 32761, 36481, 37249, 39601, 54289, 68921
Offset: 1

Views

Author

Zak Seidov, Oct 26 2002

Keywords

Comments

Up to 10^10, there are only 108 distinct-digit prime powers of prime numbers; the last one being 2^29 = 536870912.

Crossrefs

Programs

  • Mathematica
    pp = Sort[ Flatten[ Table[ Prime[n]^Prime[i], {n, 1, PrimePi[ Sqrt[10^10]]}, {i, 1, PrimePi[ Floor[ Log[ Prime[n], 10^10]]]}]]]; a = {}; Do[ d = IntegerDigits[ pp[[n]]]; If[ Length[d] == Length[ Union[d]], a = Append[a, pp[[n]]]], {n, 1, 9965}]; a

Extensions

Edited by Robert G. Wilson v, Oct 31 2002