Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.


Prime Numbers

Recommended Posts

Yesterday I saw a disturbing video about prime numbers and their paradoxes.

Then just for fun I decided to code a script so as to generate an infinite list with prime numbers.

This script below shows as debug messages some prime numbers, starting from 1 until ... how many time you can wait :)



Please login or register to see this code.


  • Like 1

Share this post

Link to post
Share on other sites

Please login or register to see this quote.

My understanding of code doesn't mean that it's always for a game.

But in the same time, I remember a game in which you have to escape using doors with numbers - only prime numbers guarantee safe rooms - others are traps :)

This game is called Bryan Audley's Numbers - it's not a really good game, but its mechanics are interesting.

Also the main gameplay of this game reminds a great movie - Cube which I highly recommend ++



  • Like 1

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...