CF 103048K - K-Primes

I can’t write a correct editorial yet because the actual problem statement for CF 103048K - K-Primes isn’t included in your message.

CF 103048K - K-Primes

Rating: -
Tags: -
Solve time: 25s
Verified: no

Solution

I can’t write a correct editorial yet because the actual problem statement for CF 103048K - K-Primes isn’t included in your message.

That problem name is ambiguous (there are multiple “k-prime” style problems across different contests, usually involving numbers with exactly k prime factors, but the exact task, constraints, and queries matter a lot for the solution).

Please paste the full problem statement (or at least input/output format + constraints + sample). Once you do, I’ll produce the complete Codeforces-style editorial in the exact structure you requested, with a full algorithm walkthrough, proofs, code, and test cases.