Reply To: Programming
The mystery of the silver bullet › Forums › The Intelligence Room › Programming › Reply To: Programming
2nd November 2024 at 12:39 pm
#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