Fractran: Difference between revisions
Content added Content deleted
Line 2,501: | Line 2,501: | ||
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. |
||
<lang Nim> |
<lang Nim> |
||
import strutils |
import strutils |