Skip to content

Instantly share code, notes, and snippets.

@danielcristofani
Created January 8, 2021 14:14
Show Gist options
  • Save danielcristofani/f9cf3d348701e5a39d392716581ed48a to your computer and use it in GitHub Desktop.
Save danielcristofani/f9cf3d348701e5a39d392716581ed48a to your computer and use it in GitHub Desktop.
Ackermann–Péter function
>,>+>>>,+<++++++++[<<<------>>>>------<-]>-[+<]<<[>]<[
<[
->>>>[
<+[->-[[>>]>-<]++++++++++>+]<[-]<<-[+>>]<<
[[>>+<<-]<<]
<<[>+<-]->[<+>>+<-]+>>+>>>>
]<<<[
>>>++<<
]
]>[
->>
+[[-]>[>]<[-<]>---------[+++++++++++[<<]>-<]+>+]<-
>>[[<<+>>-]>>]<<<<[<<]>
]<<
]>>+>[+>+++++>]<[[<+++++++++>-]<+.<]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment