diff --git a/Changes b/Changes
--- a/Changes
+++ b/Changes
@@ -1,3 +1,5 @@
+0.2.0.4:
+    Fix bug in nthPrime
 0.2.0.3:
     Fix bug in powerMod
 0.2.0.2:
diff --git a/Math/NumberTheory/Primes/Counting/Impl.hs b/Math/NumberTheory/Primes/Counting/Impl.hs
--- a/Math/NumberTheory/Primes/Counting/Impl.hs
+++ b/Math/NumberTheory/Primes/Counting/Impl.hs
@@ -120,7 +120,7 @@
         rep | o0 < 0    = 0
             | otherwise = sum [1 | i <- [0 .. r2], ba `unsafeAt` i]
               where
-                o0 = a - vO - 7
+                o0 = strt - vO - 9   -- (strt - 2) - v0 - 7
                 r0 = fromInteger o0 `rem` 30
                 r1 = r0 `quot` 3
                 r2 = min 7 (if r1 > 5 then r1-1 else r1)
diff --git a/arithmoi.cabal b/arithmoi.cabal
--- a/arithmoi.cabal
+++ b/arithmoi.cabal
@@ -1,5 +1,5 @@
 name                : arithmoi
-version             : 0.2.0.3
+version             : 0.2.0.4
 cabal-version       : >= 1.6
 author              : Daniel Fischer
 copyright           : (c) 2011 Daniel Fischer
