Thoughts for next steps
This commit is contained in:
@@ -19,6 +19,29 @@ main = do
|
|||||||
print $ nubOrd results
|
print $ nubOrd results
|
||||||
putStrLn "======================================"
|
putStrLn "======================================"
|
||||||
|
|
||||||
|
{-
|
||||||
|
Idea for next steps
|
||||||
|
Don't compute numbers if even, we know they'll go to 1
|
||||||
|
(https://smunix.github.io/dev.stephendiehl.com/hask/tutorial.pdf - Scientific numbers)
|
||||||
|
|
||||||
|
Sample a few numbers at a given order of magnitude, then increase the exponent and sample more numbers
|
||||||
|
eg. [-10..n..+10], where n = 2^1_000, then n = 2^1_001, then n = 2^2_000, etc.
|
||||||
|
-}
|
||||||
|
|
||||||
|
{-
|
||||||
|
Starting at 2^1_000, and computing 100 values.
|
||||||
|
- [1001,7249,7430]
|
||||||
|
|
||||||
|
Starting at 2^10_000, and computing 100 values.
|
||||||
|
- [10001,72379]
|
||||||
|
|
||||||
|
Starting at 2^100_000, and computing 100 values.
|
||||||
|
- [100001,717859]
|
||||||
|
|
||||||
|
Starting at 2^1_000_000, and computing 100 values.
|
||||||
|
- [1000001,7212801]
|
||||||
|
-}
|
||||||
|
|
||||||
lst :: [Integer]
|
lst :: [Integer]
|
||||||
lst = take 300 [2^100_000..]
|
lst = take 300 [2^100_000..]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user