Skip to main content
The National Cipher Challenge

Reply To: Programming

#98057
Astralica
Participant

@BytesInBits

Whoops, I didn’t see that. After adding a counter to my code, it appears there are 4563 sets.

Here’s my solution for question 1, as it appears Harry has forgotten about it.
All in one line, because why not? (I swear my code normally isn’t as garbage as Q1 and Q3…)

print(next(filter(lambda x: all(x % (4, 5, 7, 11, 17)[i] == (3, 1, 2, 2, 12)[i] for i in range(5)), range(5000, 50000))))
Output: 29031

Report a problem