Rosetta Problems

P-smooth number

https://atcoder.jp/contests/abc300/tasks/abc300_g