becomes computable quickly only after reducing num divs using sqrt of num to tested for prime-ness