Hi there. Here is my attempt at the first problem in set #1. It's not working the way I want and would very much appreciate some guidance. Thanks in advance :)
testmax = int(raw_input("Enter the maximum number to test: "))
while (testmax > 1):
if (testmax % 2) == 1: #this gets me all odd numbers under testmax
divisor = testmax - 1 #this gets me all integers under testmax as divisors
while (divisor > 0):
if (testmax % divisor) == 0: #if this is true then testmax is divisible by divisor
print testmax, "is divisible by", divi

Hey! We 've verified this expert answer for you, click below to unlock the details :)

I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!

Looking for something else?

Not the answer you are looking for? Search for more explanations.

## More answers

Looking for something else?

Not the answer you are looking for? Search for more explanations.