Hi! I'd be happy if someone help me with creating a code that simulates the Langton's Ant behavior for generating prime numbers up to N. I understand that you'd like the ant to move a distance equal to the length of the number, and change direction when encountering a prime number (45 degree change). However, I cannot view or process images (I can only draw by my own hands as above ilustration). If you'd like to share the image or any specific code you've written, you can describe it to me, and I'll do my best to assist you with it.
I asked someone who is really good at it to help me and he created above illustration but only to 100 000 numbers, author of channel and illustration:
https://www.youtube.com/@mc2ch
Can someone do it for 10 mln? or maybe try change direction by 90 degrees?