https://github.com/pihedron/fib
Pihedron's Algorithm for calculating the nth Fibonacci number
https://github.com/pihedron/fib
fibonacci
Last synced: about 1 year ago
JSON representation
Pihedron's Algorithm for calculating the nth Fibonacci number
- Host: GitHub
- URL: https://github.com/pihedron/fib
- Owner: pihedron
- Created: 2024-12-27T10:02:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-25T19:09:21.000Z (about 1 year ago)
- Last Synced: 2025-05-22T00:39:56.233Z (about 1 year ago)
- Topics: fibonacci
- Language: Rust
- Homepage: https://youtu.be/6ZyTqfFCnjg
- Size: 17.6 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fast Fibonacci
This is the fastest and most accurate Fibonacci number calculator I could make. It's so good it even works for negative numbers.
> [!WARNING]
> ~~Python~~ Rust laid waste to my C++.
## Directions
Clone the repository.
```sh
git clone
```
Run the release version for best performance.
```sh
cargo run --release
```
## Benchmarks
This can compute between the 10 (old) to 25 (new) millionth Fibonacci number in 1 second on a laptop without loss of accuracy. So it's safe to say that it's faster than [@GSheaf](https://github.com/GSheaf)'s code.