implement algorithm from Paul Scott's nth prime post
refactor implementation
variable name