index i starts from 2 because at 1 st iteration every 2 nd element was remove and keep going for k - th iteration
for ( int i = 2 ; ; i ++ ) { if ( i > n ) return true ; if ( n % i == 0 ) return false ;