Frage im Vorstellungsgespräch bei Fast Enterprises

Coding question: write function isPrime and explain your process