Crow'Did
Currently viewing the tag: "教育"
“这个知道就行了..”
不久前上算法课的时候,那头有点光的老师给我们讲找出素数的题目.方法是很简单,只需让这个数一直除,从2除到n/2,只要得到的余数没有一个是0,那么它就是素数了.老师问有没有更快捷的.问完便自己答了:其实只需要除到n的开方..至于为啥,他也没多解释,我们也只好在屏幕上敲那么几个sqr()了…
[......]
Use the form below to search the site:
Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!