ArenaRating

2024 KSA Automata Winter Contest

Solution

Multiplying 111111 makes any digit a non-prime number. Be careful not to print 000000 or 1111, etc.