View last week's challenge HERE.
This week's challenge is simple to grasp, but more difficult to execute. This week, let's make an application that finds the closest prime number to a users input.
A prime number is a number that has two positive divisors - 1 and itself.
Without the use of a lookup table, please build an app that takes a user-entered number and returns the closest prime number to the entered number.
Fun fact: this post went live on 07/31/2017 - a very prime day indeed!
Challenge 79
Solved.
I solved but I used the solution for my understanding.