Faoileag's Nest

My Home On The Net

Home Projects Soapbox Writing About Imprint Data Privacy Statement

Fibonacci in Brainfuck

This project is an attempt to calculate the Fibonacci Sequence in Brainfuck, the esoteric programming language.

fibo1.bf is a Brainfuck script calculating for a given number its corresponding fibonacci number. It does have severe limitations (see the comment block) and works satisfactorily for a maximum query of 6. You can download it here.


fibo2.bf is my second attempt. In theory, there's no limit to the calculated number, in practice it is. Storing (big) integers as the length of a range of data cells doesn't work with most brainfuck interpreters due to the limit of 30000 cells they usually have.
It should work with mine, but doesn't either and is also extremely slow.
So fibo2.bf is now abandoned as well.