Fractran: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: algo comment) |
|||
Line 2,501: | Line 2,501: | ||
20: 30</pre> |
20: 30</pre> |
||
=={{header|Nim}}== |
=={{header|Nim}}== |
||
=== Using fractions=== |
|||
This is a simple implementation which operates on fractions. As Nim standard library doesn’t provide a module for big numbers, we have used the extra library “bignum” which relies on “gmp”. |
This is a simple implementation which operates on fractions. As Nim standard library doesn’t provide a module for big numbers, we have used the extra library “bignum” which relies on “gmp”. |
||
We provide a general function to run any Fractran program and a specialized iterator to find prime numbers. |
We provide a general function to run any Fractran program and a specialized iterator to find prime numbers. |