y = 8x = y / 2 # For some y > 1while x > 1: if y % x == 0: # Remainder print y, 'has factor', x break # Skip else x = x-1else: # Normal exit print y, 'is prime'
Name (required)
email (will not be published) (required)
Website