An algorithm to sum any Kempner series