a pattern-matching game based on prime numbers