Find integer solutions to y^3 == x^2 + 1

Run Settings
LanguageHaskell
Language Version
Run Command
-- Find integer solutions to y^3 == x^2 + 1 main = do let equation (x,y) = y^3 == x^2 + 1 let candidates = [(x,y) | x <- [0..1000], y <-[-100..100]] let solutions = filter equation candidates print solutions
Editor Settings
Theme
Key bindings
Full width
Lines