save primes in set container
set mutex to each variable
use square root