guardians_song (
guardians_song) wrote2013-03-02 06:19 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Entry tags:
If you ever wanted to know all the prime numbers up to a given number...
Here you go. (Assuming my code is sound, that is. And I very much hope it is, because if it isn't, then I need to go headdesk a few times...)
I would advise only typing in numbers under 100,000, as it starts to lag around there. And I don't want to blow up your browser. >_> And, er, it should go without saying that you'd have to do a lot of scrolling if you put in a number that large and didn't specify that you only wanted to see so many primes less than that number...
I would advise only typing in numbers under 100,000, as it starts to lag around there. And I don't want to blow up your browser. >_> And, er, it should go without saying that you'd have to do a lot of scrolling if you put in a number that large and didn't specify that you only wanted to see so many primes less than that number...