Function to mark all the exponent of prime numbers
function ModifiedSieveOfEratosthenes ( N , Expo_Prime ) { let primes = new Array ( N ) ; primes . fill ( true ) for ( let i = 2 ; i < N ; i ++ ) { if ( primes [ i ] ) { let no = i ;