finding prime numbers in a range using python