Add support for backwards nth prime search