這題基本上跟a010一樣
只是要注意超時問題
觀念講解如下:
https://www.youtube.com/watch?v=rqukTlU8IFQ&list=PLSRyNAP4ghHf1Hptij4sppujoMXCad-jE&index=10
質因數分解(a010)講解如下:
https://www.youtube.com/watch?v=BN-RySCFE8M&list=PLSRyNAP4ghHf1Hptij4sppujoMXCad-jE&index=1