Project Euler – Problem 7
Problem 7 from Project Euler: By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10001st prime number? My solution: DECLARE v_cnt PLS_INTEGER := 1; v_curr PLS_INTEGER := 2; c_num_prime CONSTANT PLS_INTEGER := 10001; FUNCTION is_prime ( num_in IN… Read More »