Coding challenge

Twin primes are prime numbers whose difference is two, as in (3,5), (5,7), (11,13), (17,19), etc. Write some code to prove that starting with $n=5$, twin primes have the form $(6n-1,6n+1).$ Note: The function isprime(n) will return true is n is prime or false if it isn't. Ex: isprime(10) returns false, but isprime(5) returns true.

Type your code here:


Lua reference

See your results here: