Palomino interview question

Basic notepad based coding task for finding a prime number.