This methid finds all primes smaller than ' limit ' using simple sieve of eratosthenes . It also stores found primes in vector prime [ ]
static void simpleSieve ( int limit , Vector < Integer > prime ) {