from multiprocessing import Pool from math import sqrt, floor def is_prime(num): if num < 2: raise ValueError("") if num == 2: