Introducing basic implementation for nth prime and prime factorization - with minor change