it could be a good interview question

来源: 2009-05-05 08:04:36 [旧帖] [给我悄悄话] 本文已被阅读:

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?