Anonymous user
Factors of an integer: Difference between revisions
→fac.m
(→fac.m) |
|||
Line 1,338:
factor(N, X + 1, Limit, !Accumulator) ).
:- func factor(int
%:- mode factor(in) = out is det.
factor(N) = Factors :- factor(N, Factors).
|