factor.frink

View or download factor.frink in plain text format


n = eval[input["Enter number to factor: "]]

m = int[sqrt[n]]

for i = 2 to m
   if (n mod i) == 0
      println["$i, " + n/i]


View or download factor.frink in plain text format


This is a program written in the programming language Frink.
For more information, view the Frink Documentation or see More Sample Frink Programs.

Alan Eliasen was born 17590 days, 6 hours, 50 minutes ago.