Finds smallest prime factor of all numbersin range [ 1 , maxn ) and stores them in smallest_prime [ ] , smallest_prime [ i ] should contain the smallest prime that divides i
static void findSmallestPrimeFactors ( ) {