#!/usr/bin/env python try: import psyco psyco.full() except: pass def isprime(num): test = 3 # Since no even number exists in the passed number. condition = num/2 # We store the num/2 in a variable to avoid repeated calculations of it in the loop. while test