Count N-digit numbers where digits at prime positions are prime (2, 3, 5, 7) and digits at non-prime positions are non-prime (0, 1, 4, 6, 8, 9), such that the number % M == K.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.