99 個 Elm 難題 / 問題 35
外觀
確定給定正整數的質因數。構建一個平面列表,其中包含按升序排列的質因數。
# # # 這是一個存根 # # #
Example in Elm:
import Html exposing (text)
import List
f : Int -> Int
-- your implementation goes here
main = text (toString (f 0))
結果
4
確定給定正整數的質因數。構建一個平面列表,其中包含按升序排列的質因數。
# # # 這是一個存根 # # #
Example in Elm:
import Html exposing (text)
import List
f : Int -> Int
-- your implementation goes here
main = text (toString (f 0))
結果
4