bool isprime[32769];
int prime[32769];
typedef unsigned int ui;
int main(int argc, char const* argv[])
{
int m = 0;
for(int i = 2;i <= 32768;i++ ){
if(!isprime[i]){
prime[m++] = i;
for(int j = i*i;j <= 32768;j = j+i)
isprime[j] = true;
}
}
string line;
while ...