Rosetta Problems

おいらの素数生成式

https://atcoder.jp/contests/birthday0410/tasks/birthday0410_f