+ 1

Checking prime number or not python programe

I want python programe in simple manner

30th Sep 2018, 4:39 PM
Guru Lokesh
2 Respuestas
30th Sep 2018, 5:24 PM
Joel Kronqvist
Joel Kronqvist - avatar
0
number = int(input()) if any(number % num == 0 for num in range(2, (number // 2) + 1)): print("no") else: print("yes")
30th Sep 2018, 5:24 PM
Kevin Dietrichstein
Kevin Dietrichstein - avatar