Notes: - This is a project I made in a relatively short amount of time. I really did not try hard on it, and just put blocks together until I got something sort of like how I wanted. Do not get mad at me for a bug or inconvenience, as this isn't really polished. - This is a calculator for prime numbers! I have been looking into them recently, and I swear there has to be a pattern here, but what makes them so interesting is that they are 'special' numbers in that they cannot be factored up by any other combination of numbers and appear as random. They are not calculated linearly, which is the downside, and there are certain ways to find certain primes, but no one has really solved the problem yet. - Credit to Gemini for telling me how to do this step-by-step. I looked at the Wikipedia page and a few other pages, but there was a lot of jargon, and would require planning for me, which I didn't feel like doing. - If you want to know why the blocks have faces, don't ask me. ____________________________________________ How To Use The Project: - When the nerd asks you to what threshold do you want to calculate primes for, put in any number, and it will keep going and going until it finds all the primes from 2 to whatever number you put in. - You cannot put in any number to be calculated, as it must be at least 2 (1 is a special case), and it cannot have letters in it. - Press space to rerun the project after seeing the primes list. - The numbers in the display are as follows. The first number is the individual prime, represented as a tile on the screen that gets moved downward, that you have your cursor on. The second one is the highest prime for each percentage gained, or if you update it by hovering over a tile. This was really to stop any lag, as otherwise I would be doing far more, and it would not work out. I could probably find a way around this, but I'm too lazy. The third number is the percentage of primes out of the total range you gave it to calculate. For example, there are 25 primes within the first 2-100 numbers, giving you 25%, while there are 168 primes within 2-1000, giving you 17%. If you want more predetermined ones: 2-10000 gives you 1229, making it 12%, there are 5133 primes between 2-50000, making it 10%, there are 9592 primes between 2-100000, making it 10%, and afterwards, I can only find 17984 primes before the project stops working correctly between 2-1000000. It seems the limit is around 2-200,000, in which I find 17,984 primes, and it is only 9%. - If you want to boost the speed, turn on Turbo-Mode by holding Shift while clicking the Green Flag. - With this project specifically, the tiles are actually to the colored values of the primes themselves, starting from red, and it is interesting see how there are patterns within prime numbers with a few outliers via these colors. - Fun fact: every prime is an odd number except 2. It's because odd numbers cannot as easily replicate odd numbers, while 2 can recreate every even number. ____________________________________________ In Essence: - If you want to find prime numbers, this project is the fit for you. Just ignore the trashy project. - There can be a few other major optimizations to this project, but this works enough just for what I wanted to use it for. I don't need 100,000 primes, I just need like a 1000. - Within the project, if you want quick calculations, just say "true" to the efficiency request, and it will calculate without visuals, though it is still restricted by the 200,000 limit sadly. ____________________________________________ Interesting Reads: [ https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes ] [ https://en.wikipedia.org/wiki/Trial_division ] ____________________________________________ Update Log: Version 1: (3/13/26) - released base project with tile visualization, three overhead numbers, colors, correct input, and all prime number calculation up to a memory threshold or program stop. Version 1.1: (3/13/26) - added small update that allows capability to run more efficiently without visuals, and asks the user to turn it on or not. Added potential update where it can group up primes to save space and go further, but will have to apply to the sieves list. Learned that there is a 200,000 item list limit, which I will work on bypassing. May have to segment stuff in chunks, as string parsing via grouping likely will be much slower. ____________________________________________ Note: - Ironically, some of the notes were made before I added the 'no visuals' option, so keep that in mind. Everything was set to the default from before until it was specified. ____________________________________________