An open API service indexing awesome lists of open source software.

https://github.com/c1m50c/twin-primes

Repository based on a Computerphile video, "Infinite Data Structures: To Infinity & Beyond!"
https://github.com/c1m50c/twin-primes

computerphile haskell lazy-evaluation mit-license prime-numbers

Last synced: 18 days ago
JSON representation

Repository based on a Computerphile video, "Infinite Data Structures: To Infinity & Beyond!"

Awesome Lists containing this project

README

          

# **twin-primes**
Based on a Computerphile video,
"Infinite Data Structures: To Infinity & Beyond!".

## How it works
It works based on the lazyness of Haskell and infinite lists. We calculate all primes with the Sieve of Eratosthenes Algorithm, then loop over the primes for twins.

## Running
First install Haskell, and then run the following commands within a terminal.
```bash
$ cd twin-primes # Change directory to `twin-primes`
$ cabal run # Compile and run the application.
```