arithmoi 0.2.0.4 → 0.2.0.5
raw patch · 3 files changed
+7/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Changes +2/−0
- Math/NumberTheory/Primes/Sieve/Eratosthenes.hs +4/−1
- arithmoi.cabal +1/−1
Changes view
@@ -1,3 +1,5 @@+0.2.0.5:+ Fix bug in psieveFrom 0.2.0.4: Fix bug in nthPrime 0.2.0.3:
Math/NumberTheory/Primes/Sieve/Eratosthenes.hs view
@@ -362,7 +362,10 @@ p = 30*k+fromIntegral (rho i) q0 = (start-1) `quot` p (skp0,q1) = q0 `quotRem` fromIntegral sieveRange- (b0,r0) = idxPr (fromIntegral q1 :: Int)+ (b0,r0)+ | q1 == 0 = (-1,6)+ | q1 < 7 = (-1,7)+ | otherwise = idxPr (fromIntegral q1 :: Int) (b1,r1) | r0 == 7 = (b0+1,0) | otherwise = (b0,r0+1) b2 = skp0*fromIntegral sieveBytes + fromIntegral b1
arithmoi.cabal view
@@ -1,5 +1,5 @@ name : arithmoi-version : 0.2.0.4+version : 0.2.0.5 cabal-version : >= 1.6 author : Daniel Fischer copyright : (c) 2011 Daniel Fischer