Thread: Prime numbers
View Single Post
  #8 (permalink)  
Old 05-12-2008, 01:59 PM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: London, England
Posts: 4,927
Last Blog:
Web slideshow in JavaS...
Rep Power: 42
Xav is a splendid one to beholdXav is a splendid one to beholdXav is a splendid one to beholdXav is a splendid one to beholdXav is a splendid one to beholdXav is a splendid one to beholdXav is a splendid one to behold
Send a message via MSN to Xav
Default Re: Prime numbers

Yes, you only need to check the numbers between 2 and half of n, as once you go above halfway, it's impossible to fit in a whole number?

@ Winged, is there a keyboard shortcut for code tags? I know Ctrl-B is bold, I is Italic, U is underlined... how about code?
__________________
[TRUTH] TcM is the best moderator ever! [/TRUTH]
"Valid XHTML is like sex - everybody claims to have the same goal, but everybody has their own tricks and results vary wildly."
Web Site | Beta Site
Reply With Quote