Sign in to follow this  
Followers 0
GodModeKing

Prime Numbers

2 posts in this topic

ok so my idea is an input box that you input a number (limiting it to 3 digits or so) then it will state if it is prim or not so.. how would i go about this?

Sorry my English isn't that great im russian

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

ok so my idea is an input box that you input a number (limiting it to 3 digits or so) then it will state if it is prim or not so.. how would i go about this?

Sorry my English isn't that great im russian

Look here: http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes or for a overview here: http://en.wikipedia.org/wiki/Primality_test

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0