Regex to check for prime numbers | Hacker News Reader