Jump to content

Brilliant numbers: Difference between revisions

m
Line 458:
let brilliants = filter isBrilliant [1 ..]
indexedBrilliants = zip [1 ..] brilliants
 
putStrLn $
table " " $
chunksOf 10 $ show <$> take 100 brilliants
show
<$> take 100 brilliants
 
putStrLn "(index, brilliant)"
Line 472 ⟶ 471:
$ zip indexedBrilliants (tail indexedBrilliants)
 
------------------------- DISPLAY ------------------------
 
----------------------- DISPLAY ------------------------
 
table :: String -> [[String]] -> String
9,659

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.