Rosetta Problems

文字列と素数

https://atcoder.jp/contests/ttpc2015/tasks/ttpc2015_d