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?