We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Hackerrank Home
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. All Contests
  2. ProjectEuler+
  3. Project Euler #63: Powerful digit counts

Project Euler #63: Powerful digit counts

Problem
Submissions
Leaderboard
Discussions

This problem is a programming version of Problem 63 from projecteuler.net

The number, , is also a fifth power. Similarly, the 9-digit number, , is a ninth power.

Given , print the positive integers which are also an power?

Input Format

Input contains an integer

Constraints

Output Format

Print the answer corresponding to the test case.

Sample Input

2

Sample Output

16
25
36
49
64
81

Author

shashank21j

Difficulty

Easy

Max Score

100

Submitted By

3563

Need Help?


View discussions
View top submissions

rate this challenge

MORE DETAILS

Download problem statement
Download sample test cases
Suggest Edits

Choose a translation


  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy