Codeforces Round #565 (Div. 3) D. Recover it! (数学+素数)

NoSuchKey