#include<bits/stdc++.h>
using namespace std;
// 素数筛
const int maxn = 1000000 + 5;
int prime[maxn];
void getPrime(){
memset(prime, 0, sizeof(prime));
for(int i = 2; i <= maxn; i ++){
if(prime[i] == 0) prime[++ prime[0]] = i;
for(int j = 1; j <= prime[0] && i ...