#include #include #include #include #include using namespace std; using Long=long long int; std::vector genprimes(Long N) { std::vector p(N); for(Long i=2;i>N; if(N%2==0) { if(N%4==0) { cout << 4 << endl; return 0; } if(isprime(N/2) && N/2!=2) { cout << N/2 << endl; return 0; } } for(auto x : primes) { if(x==2) continue; if(N%x==0) { cout<