Cuban primes: Difference between revisions
Content added Content deleted
m (→Alternate) |
m (→{{header|Haskell}}: simplify) |
||
Line 1,014: | Line 1,014: | ||
cubans :: [Int] |
cubans :: [Int] |
||
cubans = |
cubans = filter isPrime . map (\x -> (succ x ^ 3) - (x ^ 3)) $ [1..] |
||
main :: IO () |
main :: IO () |