cout << "Enter a max number between 2-5000 to find all primes: ";
cin >> max;
if (max > 5000)
{
cout << "Too big, enter a number lower than 5000: ";
cin >> max;
}
if (max > 100)
{
primearr[(max-1)-100] = primearr[max]; // to print last 100 elements
} // is this a good initialization?