#24851: __想法


fire5386 (becaidorz)


把self number當作質數篩就可以了 布一樣的地方是篩過的後面就不用重複再篩了

參考程式碼:

https://66lemon66.blogspot.com/2021/03/zerojudge-d044-00640-self-numbers-c.html