response input('' if response isdecimal() num int(response break input('press ctrl- at any time to quit press enter to begin ' while true print out any prime numbers if isprime(num) print(str(num''end=''flush=true num num go to the next number def isprime(number) """returns true if number is primeotherwise returns false "" handle special cases if number return false elif number = return true try to evenly divide number by all numbers from up to number' square root for in range( int(math sqrt(number) ) if number = return false return true if this program was run (instead of imported)run the game if __name__ ='__main__' try main( except keyboardinterrupt sys exit(when ctrl- is pressedend the program exploring the program try to find the answers to the following questions experiment with some modifications to the code and rerun the program to see what effect the changes have what error do you get if you change response isdecimal(on line to response and enter non-number for the number from which to start searching for primes what happens if you change number what happens if you change number = on line to number ! project #