You are viewing a single comment's thread. Return to all comments →
its kind of strange,
I am using the below code m=int(input()) m=6 sumd=0 i=11 while 10 answer=str(sumd) answer=int(answer[-5:]) print(answer)
in python, when m=6, I can retrieve 142857 but m=2 doesnt work, I only get 11
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #168: Number Rotations
You are viewing a single comment's thread. Return to all comments →
its kind of strange,
I am using the below code m=int(input()) m=6 sumd=0 i=11 while 10 answer=str(sumd) answer=int(answer[-5:]) print(answer)
in python, when m=6, I can retrieve 142857 but m=2 doesnt work, I only get 11