Skip to main content
The National Cipher Challenge

Reply To: Programming

A Tale of 2 Secrets Forums T.E.M.P.E.S.T. Programming Reply To: Programming

#113098
F6EXB_the_frenchy
Participant

A cleaner program:

for X in range(102 , 999999):
    if str(X)[-1] != str(1): # saute les nombres terminés par 1
        Y = str(X)[-1] # Y dernier caractère ==> CHAINE
        Z = X * int(Y) # produit de deux ENTIERS
        W = Y + str(X)[0 : -1]
    if int(W) == Z:
        print("réponse", X)
Report a problem