Print Prime Numbers Hackerrank Solution Python