Langton's Ant

Joined
Oct 23, 2023
Messages
1
Reaction score
0
1698098716636.png

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.


1698099219109.png

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top