pi@rp64lite:~ $ swift
Welcome to Swift version 5.5 (swift-5.5-RELEASE).
Type :help for assistance.
1> for i in 1...100_000 {
2. print(i)
3. }
This simple piece of code makes all the LEDs on my router flash. This doesn't make any sense to me, so please can someone explain why this is happening and how to prevent it?
I presume you’re connected to the pi through your network when you run that program. So the program output is being returned through your network, and router, to you. And thus the LEDs flash on your router when they see that trafffic.