project-euler

Powerful digit counts

Problem Description

The 5-digit number, 16807=75, is also a fifth power. Similarly, the 9-digit number, 134217728=89, is a ninth power.

How many n-digit positive integers exist which are also an nth power?

Performance

Try it online!

Real time: 0.570 s
User time: 0.426 s
Sys. time: 0.218 s
CPU share: 113.13 %
Exit code: 0