#!/usr/bin/pyhton i = 9 primes = [3,5,7] print "Prime found: 3" print "Prime found: 5" print "Prime found: 7" def multipleOfPrime(prime): for prime in primes: if i%prime == 0: return True return False while 1: i += 2 if multipleOfPrime(i): continue primes.append(i) print "Prime found: "+str(i)