added support for prime integers