Quick actions

cmd+k|ctrl+k

Navigation

Languages

Fermat's Formula

Snippet info

Language

Haskell

Visibility

public

Author

atmantree

Created

2018-01-07T07:21:42Z

Updated

2018-01-21T13:53:35Z

-- Fermat's Formula
-- source: https://hackersandevelopers.wordpress.com/2017/08/04/bases-matematicas-de-la-criptografia-asimetrica-1/

fermat n = 2 ^ ( 2 ^ n ) + 1

main = print $ map fermat [1,2,3,4,5,6,7,8,9,10]
INFO