ChallengeRocket
  • Challenges
  • Find jobs
  • Candidate Hub
  • Employers / Post a Job
  • Log in
  • Sign up now
Menu
  • Home
  • Challenges
  • Magic Numbers

Magic Numbers

Magic Numbers

Before you start the test, check out our tutorial challenge

~30MIN
Start: Mar 08, 2019
SKILL PRACTICE CHALLENGE
  • About the challenge
  • Tips
  • Leaderboard
Magic Numbers
  • About the challenge
  • Tips
  • Leaderboard

Hello and welcome to the challenge!


A magic number is a number which fulfills this dependence: d1^1 + d2^2 + ... + dn^n = D, where D is the number and d1..dn are its digits (respectively). The example of such a number is 135, because 1^1 + 3^2 + 5^3 = 135. Write a code which detects all magic numbers in the given range x..y.


Have fun and good luck! :)

By using our site, you agree to challengerocket's use of cookies in accordance with our privacy policy.
ChallengeRocket
Tech talent
Challenges Blog Find jobs Candidate Hub
Companies
Business HR Blog Pricing
Challengerocket
FAQ EU Join Us Contact Us
Copyright © 2023 ChallengeRocket. All rights reserved.
Privacy Terms and Conditions Service status

Log in

Don’t have account?
Create a candidate account
or

Forgot your password?

Log in

Don’t have account?
Create an employer account

Forgot your password?

Create a candidate account

Already have an account?
Log in
or
  • At least 8 characters
  • Uppercase Latin characters
  • Lowercase Latin characters
  • At least one number or symbol

Not a candidate?  Sign up as an employer

Reset your password

Remember your password? Log in Log in for business

Create an employer account

Sign up for free.
Select the best plan to publish job ofers & challenges.

Company name introduced here will be visible on your job ads.
  • At least 8 characters
  • Uppercase Latin characters
  • Lowercase Latin characters
  • At least one number or symbol

Not an employer?  Sign up as a candidate