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
largeMRPrime' :: [Integer] -> IO Int
largeMRPrime' (x:xs) = do isPrime <- primeMR 2 (2^x - 1)
if isPrime then return (fromInteger x)
else do p <- largeMRPrime' xs
return p
Report incomplete. If you parametrize largeMRPrime' like
largeMRPrime' :: Int->[Integer] -> IO Int
largeMRPrime' k (x:xs) = do isPrime <- primeMR k (2^x - 1)
if isPrime then return (fromInteger x)
else do p <- largeMRPrime' xs
return p
then you see with k=1 there will be false positives.
6b (<-7)
7(<-10)
The text was updated successfully, but these errors were encountered:
6a
(6a<-10)
6b
Report incomplete. If you parametrize l
argeMRPrime'
likethen you see with
k
=1 there will be false positives.6b (<-7)
7(<-10)
The text was updated successfully, but these errors were encountered: