Skip to content
FRACTRAN
EntityQ3063395· pop 11· linked from 17 articles

FRACTRAN is a Turing-complete esoteric programming language invented by the mathematician John Conway. A FRACTRAN program is an ordered list of positive fractions together with an initial positive integer input n. The program is run by updating the integer n as follows: for the first fraction f in the list for which nf is an integer, replace n by nf repeat this rule until no fraction in the list produces an integer when multiplied by n, then halt.

In the Vinony graph

Within Vinony's link graph, FRACTRAN is referenced by 17 other articles, and connects out to fraction, esoteric programming language and International Standard Book Number.

Vinony files it under Esoteric programming languages, Models of computation and Recreational mathematics.

Its subject is documented across 10 Wikipedia language editions.

Wikidata facts

Show 2 more facts
Commons category
Fractran (programming language)
maintained by WikiProject
WikiProject Mathematics

via Wikidata · CC0

~12 min read

Encyclopedic overview

11 sections
Contents
  • Understanding a FRACTRAN program
  • Creating simple programs
  • Addition
  • Multiplication
  • Subtraction and division
  • Conway's prime algorithm
  • Other examples
  • Notes
  • See also
  • References
  • External links

FRACTRAN is a Turing-complete esoteric programming language invented by the mathematician John Conway. A FRACTRAN program is an ordered list of positive fractions together with an initial positive integer input n. The program is run by updating the integer n as follows: for the first fraction f in the list for which nf is an integer, replace n by nf repeat this rule until no fraction in the list produces an integer when multiplied by n, then halt.

gives the following FRACTRAN program, called PRIMEGAME, which finds successive prime numbers:

Excerpted from Wikipedia’s “FRACTRAN” article, available under the CC BY-SA 4.0 licence.

Available in 10 languages

via Wikidata sitelinks · CC0

Categories