Simple factoring test