99 個 Elm 問題/問題 36
外觀
確定給定正整數的質因數。按升序排列質因數。構建一個包含該質因數的扁平列表。
# # # 這是一個存根 # # #
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