-- work but really naive and dumb
eul10 lim = iter 2
  where
    iter p
      | p > lim = 0
      | otherwise = p + iter (nextPrime p)
eul10 lim = iter 2
  where
    iter p
      | p > lim = 0
      | otherwise = p + iter (nextPrime p)
eul10 lim = iter 2
  where
    iter p
      | p > lim = 0
      | otherwise = p + iter (nextPrime p)