CodeForces 546D Soldier and Number Game(求素因子+前缀和)

NoSuchKey