Algorithmic task to calculate the largest Prime Factor
The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 1876191413?
Please write program which will help solve this problem.
Execute following command to run the program:
ruby algorithmic_task.rb
OR
chmod +x ./algorithmic_task.rb
(only once required)
./algorithmic_task.rb