add parallelized base calculation
add parallelized prime calculation, template