i wrote a simple python code that just prints prime numbers nonstop but it only uses 25% percent of my laptops cpu (100% of a single core) . but i want it to use all of the cores. is that possible? BTW here is the code:
x = 10
while True:
for num in range(1, x):
flag = False
if x > 1:
for i in range(2, x):
if (x % i) == 0:
flag = True
break
if not flag:
print(x, "is a prime number")
break
x += 1


(1..x)is parts, with each core checking a subrange. But it's not that easy in Python. - MSalters