Fractran: Difference between revisions
Content added Content deleted
Line 2,499: | Line 2,499: | ||
20: 30</pre> |
20: 30</pre> |
||
=={{header|Nim}}== |
=={{header|Nim}}== |
||
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. |
|||
<lang Nim> |
<lang Nim> |
||
import strutils |
import strutils |