Function to generate all prime numbers up to 2 * 10 ^ 5 using Sieve of Eratosthenes
function Sieve ( ) { index = 0 ; let p = new Array ( N + 1 ) . fill ( 0 ) ; for ( let i = 0 ; i <= N ; i ++ ) { p [ i ] = 1 ; }