Numbers whose binary and ternary digit sums are prime: Difference between revisions
Content added Content deleted
Line 257: | Line 257: | ||
go 0 = 0 |
go 0 = 0 |
||
go n = uncurry (+) (first go $ quotRem n base) |
go n = uncurry (+) (first go $ quotRem n base) |
||
--------------------------- TEST ------------------------- |
--------------------------- TEST ------------------------- |
||
main :: IO () |
main :: IO () |
||
main = |
main = |
||
⚫ | |||
⚫ | |||
show (length xs) |
|||
⚫ | |||
⚫ | |||
<> table xs |
|||
⚫ | |||
where |
|||
show (length xs) |
|||
⚫ | |||
⚫ | |||
[1 .. 199] |
|||
⚫ | |||
------------------------- DISPLAY ----------------------- |
------------------------- DISPLAY ----------------------- |