num = 72 answer = [] i = 2 while num > 1: if num % i == 0: num = num // i answer.append(i) else: i += 1 answer.sort() print(answer)
To embed this project on your website, copy the following code and paste it into your website's HTML: