You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
printMer::Integer -> IO Integer
printMer x = do
b <- primeMR 10 ((2^x)-1)
if b then putStrLn $ (show x) ++ " = (2^" ++ (show x) ++ "-1)" else putStr ""
return (if b then 1 else 0)
test_mersprimes::[Integer] -> IO String
test_mersprimes ts = return ("total " ++) <*> (return show <*> (mp ts))
where
mp = foldr (\x b -> pure (+) <*> (printMer x) <*> b) (return (0))
I expected to see results with a varying first argument of primeMR. If this is chosen equal to 1 then you see that even primeMR generates false positives at Mesienne Primes.
6b(<-8)
The text was updated successfully, but these errors were encountered:
6a (<-10)
6b
I expected to see results with a varying first argument of
primeMR
. If this is chosen equal to1
then you see that evenprimeMR
generates false positives at Mesienne Primes.6b(<-8)
The text was updated successfully, but these errors were encountered: