Prim Table
Prim Table
int n;
vector<int> pr, lp;
inline PrimTable(int n_ = 0) {
n = n_;
lp.resize(n + 1);
init();
}
vector<int> res;
while (k > 1) {
const int f = lp[k];
do {
k /= f;
} while (k % f == 0);
res.push_back(f);
}
return res;
}
};