I can only think of 1 solution that is to use a for loop to try the dividability from 2 to sqrt(n). What's the 2nd solution?
it could be a good interview question
所有跟帖:
•
very interesting, thanks
-streetwalker-
♂
(241 bytes)
()
05/05/2009 postreply
11:36:50