Problem 3
コンテンツ
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
素因数分解した。
p003 = last.pfac$600851475143 pfac 1 = [] pfac m = q:(pfac m') where (q,m') = head [(n,div m n)|n<-[2..(floor.sqrt.fromIntegral$m)]++[m],mod m n==]
作成者 Toru Mano
最終更新時刻 2023-01-01 (c70d5a1)