Fixed bug in prime factor calculating code when n = 2

Signed-off-by: Ephphatha <ephphatha@thelettereph.com>