Skip to content

Fifth power #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Fifth power #63

wants to merge 5 commits into from

Conversation

Jose-Alves-Neto
Copy link
Contributor

No description provided.

119210150 JOSE ALVES DE FIGUEIREDO NETO and others added 5 commits October 7, 2019 10:59
d2 = 0
d3 = 0
d4 = 0
d5 = 0
numbers = []
soma = 0

while True:
    num = (d1**5) + (d2**5) + (d3**5) + (d4**5) + (d5**5)
    if str(num) == str(d1) + str(d2) + str(d3) + str(d4) + str(d5):
        numbers.append(num)
    d5 += 1
    if d5 >= 9:
        d5 = 0
        d4 += 1
        if d4 >= 9:
            d4 = 0
            d3 += 1
            if d3 >= 9:
                d3 = 0
                d2 += 1
                if d2 >= 9:
                    d2 = 0
                    d1 += 1
                    if d1 >= 9: break
for e in numbers:
    soma += e
print(e)

~
~
~
@imabhishekkumar
Copy link
Member

Hey, thank you for your contribution! Please check the contribution guideline and modify your PR accordingly. Thanks!

@AdarshRise AdarshRise added bug Something isn't working Re-Check-GuideLines Code is not being evaluated, as Pr is not according to guidline or unrecognizable labels Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Re-Check-GuideLines Code is not being evaluated, as Pr is not according to guidline or unrecognizable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants