All pastes #937817 Raw Edit

Unnamed

public python v1 · immutable
·published 2008-03-11 06:14 UTC
rendered paste body
for n in range(2, 10):         for x in range(2, n):             if n % x == 0:                 print n, 'equals', x, '*', n/x                 break         else:            # loop fell through without finding a factor		print n, 'is a prime number'