In this vector prime [ i ] will store true if prime [ i ] is prime , else store false
static List < Boolean > prime = new List < Boolean > ( MAX ) ; static void vecIni ( ) { for ( int i = 0 ; i < MAX ; i ++ ) { prime . Add ( true ) ; } }