“FRACTRAN: A Simple Universal Programming Language for Arithmetic”, John H. Conway1987 (, ; backlinks)⁠:

To play the fraction game corresponding to a given list

f1, f2, …, fk

of fractions and starting integer N, you repeatedly multiply the integer you have at any stage (initially N) by the earliest fi in the list for which the answer is integral. Whenever there is no such fi, the game stops.