make prime list shorter
set threads number to total CPUs