{"id":258296,"date":"2015-05-30T03:45:03","date_gmt":"2015-05-29T23:45:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=258296"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=258296","title":{"rendered":"Sexy primes, \u00ab\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439 \u043f\u0438\u0442\u043e\u043d\u00bb \u0438\u043b\u0438 \u043a\u0430\u043a \u044f \u0431\u0438\u043b\u0441\u044f \u043e \u0441\u0442\u0435\u043d\u0443 \u043d\u0435\u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f"},"content":{"rendered":"<p>     \t\u041c\u043d\u043e\u0433\u0438\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0435\u0439: \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043a\u043e\u043b\u043b\u0435\u0433\u0430 (\u0440\u0430\u0437\u0440\u0430\u0431, \u043f\u0440\u043e\u0435\u043a\u0442\u043b\u0438\u0434 \u0438\u043b\u0438 \u043f\u0440\u043e\u0434\u0430\u0436\u043d\u0438\u043a \u043d\u0435 \u0441\u0443\u0442\u044c \u0432\u0430\u0436\u043d\u043e) \u0441 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0438\u0434\u0435\u0435\u0439-\u0444\u0438\u043a\u0441: \u0434\u0430\u0432\u0430\u0439 \u043f\u0435\u0440\u0435\u043f\u0438\u0448\u0435\u043c \u0432\u0441\u0435 \u043d\u0430 java, scala \u0438 \u0442.\u0434. (\u043b\u044e\u0431\u0438\u043c\u043e\u0435 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c).<\/p>\n<p>  \u0412\u043e\u0442 \u0438 \u043c\u043d\u0435 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0440\u0430\u0437 \u00ab\u0441\u043f\u0443\u0441\u0442\u0438\u043b\u0438\u00bb \u0442\u0430\u043a\u0443\u044e \u0438\u0434\u0435\u044e \u0432 \u043d\u0435\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u043c-\u0442\u0430\u043a\u043e\u043c legacy \u043f\u0440\u043e\u0435\u043a\u0442\u0435. \u041d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c, \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0432\u0441\u0435 (\u043d\u0443 \u0432 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0435). \u0412 \u043e\u0431\u0449\u0435\u043c \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0441 \u043f\u0438\u0442\u043e\u043d\u0430 (\u0430 \u0443 \u043d\u0430\u0441 \u0442\u0430\u043c \u0435\u0449\u0435 \u0438 \u0442\u0438\u043a\u043b\u044c \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442) \u043d\u0430 scala. \u0420\u0435\u0447\u044c \u043f\u043e\u043a\u0430 \u0448\u043b\u0430 \u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043d\u043e\u0432\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u0442.\u0435. \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0441 \u043d\u0430\u0438\u043c\u0435\u043d\u0435\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u043a middle-level \u0438 front-nearby API&#8217;s. \u041a\u0430\u043a \u044f \u043f\u043e\u043d\u044f\u043b \u0432 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0432\u0441\u0435\u043c.<\/p>\n<p>  \u0427\u0435\u043b\u043e\u0432\u0435\u043a \u2014 \u043d\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a, \u0442\u0438\u043f\u0430 \u043d\u0430\u0447-\u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0430\u0436\u043d\u0438\u043a (\u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430) \u0432 \u043e\u0434\u043d\u043e\u043c \u043b\u0438\u0446\u0435.<\/p>\n<p>  \u042f \u043d\u0435 \u0442\u043e, \u0447\u0442\u043e \u0431\u044b \u043f\u0440\u043e\u0442\u0438\u0432. \u0418 \u0441\u043a\u0430\u043b\u0443 \u0443\u0432\u0430\u0436\u0430\u044e \u0438 \u043f\u043e \u0441\u0432\u043e\u0435\u043c\u0443 \u043b\u044e\u0431\u043b\u044e. \u041e\u0431\u044b\u0447\u043d\u043e \u044f \u0432\u043e\u043e\u0431\u0449\u0435 \u043e\u0442\u043a\u0440\u044b\u0442 \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u043d\u043e\u0432\u043e\u043c\u0443. \u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u043a\u0440\u043e\u043c\u0435 \u0442\u0438\u043a\u043b\u044f \u0438 \u043f\u0438\u0442\u043e\u043d\u0430 \u0443 \u043d\u0430\u0441 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0438\u043b\u0438 \u043c\u043e\u0434\u0443\u043b\u0438 \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u0430\u0445. \u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u043b\u0438 \u0441 cvs \u043d\u0430 svn, \u0430 \u0437\u0430\u0442\u0435\u043c \u043d\u0430 git (\u0430 \u0440\u0430\u043d\u044c\u0448\u0435, \u0434\u0430\u0432\u043d\u043e-\u0434\u0430\u0432\u043d\u043e, \u0432\u043e\u043e\u0431\u0449\u0435 MS-VSS \u0431\u044b\u043b). \u041f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043c\u0430\u0441\u0441\u0430, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0438\u0445 \u043e\u0434\u0438\u043d \u043c\u043e\u043c\u0435\u043d\u0442 \u2014 \u0442\u0430\u043a \u0440\u0435\u0448\u0438\u043b\u0438 \u0438\u043b\u0438 \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043e\u0434\u043e\u0431\u0440\u0438\u043b\u0438 \u0441\u0430\u043c\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 (\u043a\u043e\u043b\u043b\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u043b\u0438, \u0438\u043b\u0438 \u0431\u044b\u043b\u0430 \u0433\u0440\u0443\u043f\u043f\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u0442\u043e\u0440\u043e\u0432 \u2014 \u043d\u0435 \u0441\u0443\u0442\u044c \u0432\u0430\u0436\u043d\u043e). \u0414\u0430 \u0438 \u0434\u0435\u043b\u043e \u0432 \u043e\u0431\u0449\u0435\u043c \u0432 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u0445 \u0437\u0430 \u0438 \u043f\u0440\u043e\u0442\u0438\u0432.<\/p>\n<p>  \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u0434\u043b\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0434\u0438\u0441\u043a\u0443\u0441\u0441\u0438\u0438 \u00abDeveloper vs. Anybody-Else\u00bb \u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u043d\u0435 \u0434\u043e\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0437\u043d\u0430\u043d\u0438\u0439 \u00ab\u043c\u0430\u0442\u0435\u0440\u0438\u0438\u00bb \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u0434\u043e\u043d\u0435\u0441\u0442\u0438 \u043c\u044b\u0441\u043b\u044c \u2014 \u0442.\u0435. \u043a\u0430\u043a-\u0431\u044b \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u0430\u0445. \u0418 \u0445\u043e\u0440\u043e\u0448\u043e \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043a\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0442\u0438\u043f\u0430 software architect. \u0425\u0443\u0436\u0435 \u0435\u0441\u043b\u0438 \u0438\u043c\u0435\u0435\u043c \u00ab\u0431\u0435\u0441\u0435\u0434\u0443\u00bb \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441 \u0447\u0438\u0441\u0442\u044b\u043c \u00ab\u043f\u0440\u043e\u0434\u0430\u0436\u043d\u0438\u043a\u043e\u043c\u00bb, \u043e\u0433\u043b\u0430\u0441\u0438\u0432\u0448\u0438\u043c \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u044b\u0435 \u00ab\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u00bb \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0430.<\/p>\n<p>  \u041d\u0443 \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043f\u0440\u0435\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043b\u0438\u0442\u043e\u0447\u043d\u0438\u043a\u0443 \u2014 \u043a\u0430\u043a\u0438\u043c \u0448\u043f\u0430\u0442\u0435\u043b\u0435\u043c \u0435\u043c\u0443 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c (\u0442\u0438\u043f\u0430 \u0441 \u0437\u0443\u0431\u0446\u0430\u043c\u0438 10\u043c\u043c \u043a\u043b\u0435\u044f \u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0443\u0439\u0434\u0435\u0442, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u0441\u0435 \u0436\u0435 5\u043c\u043c. \u0410 \u0442\u043e \u0447\u0442\u043e \u0442\u0430\u043c \u043f\u043e\u043b\u044b-\u0441\u0442\u0435\u043d\u044b \u043a\u0440\u0438\u0432\u0443\u0449\u0438\u0435 \u043d\u0438\u043a\u043e\u0433\u043e \u043d\u0435 \u0432\u043e\u043b\u043d\u0443\u0435\u0442). \u0418 \u0448\u0443\u0440\u0443\u043f \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u00ab\u0437\u0430\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0442\u044c\u00bb \u043c\u043e\u043b\u043e\u0442\u043a\u043e\u043c, \u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0436\u0435 \u0435\u0441\u0442\u044c \u043e\u0442\u0432\u0435\u0440\u0442\u043a\u0430, \u0430 \u043f\u043e\u0437\u0436\u0435 \u0431\u044b\u043b \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d \u0448\u0443\u0440\u0443\u043f\u043e\u0432\u0451\u0440\u0442. \u0423\u0442\u0440\u0438\u0440\u0443\u044e \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0442\u0430\u043a\u043e\u0439 \u0432\u043e\u0442 \u0430\u0431\u0441\u0443\u0440\u0434.<br \/>  \u042d\u0442\u043e \u044f \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0432 \u0438\u0434\u0435\u0430\u043b\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u0430\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0438\u043b\u0438 \u0438\u043c\u0435\u0442\u044c \u0432 \u044d\u0442\u043e\u043c \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0441\u043b\u043e\u0432\u043e \u2014 \u0435\u043c\u0443 \u0441 \u044d\u0442\u0438\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c <s>\u0438\u043b\u0438 \u043c\u0443\u0447\u0438\u0442\u044c\u0441\u044f<\/s>.<\/p>\n<p>  \u041d\u043e \u0447\u0442\u043e-\u0442\u043e \u044f \u043e\u0442\u0432\u043b\u0435\u043a\u0441\u044f. \u0412 \u043c\u043e\u0435\u0439 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u2014 \u0437\u0430 scala, \u0443 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u043a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u0447\u0442\u0438 \u043d\u0438\u043a\u0430\u043a\u0438\u0445. <br \/>  \u0425\u043e\u0442\u044f \u044f \u043c\u043e\u0433 \u0431\u044b \u0434\u043e\u043b\u0433\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043f\u0440\u043e \u0432\u0435\u0449\u0438, \u0442\u0438\u043f\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0432, \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043e\u0442\u0442\u043e\u0447\u0435\u043d\u043d\u0443\u044e \u0438 \u043e\u0442\u043b\u0430\u0436\u0435\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0438 \u0442.\u0434. \u0438 \u0442.\u043f. \u041d\u043e \u0437\u0430\u0446\u0435\u043f\u0438\u043b\u0441\u044f \u0437\u0430 \u0435\u0433\u043e \u00ab\u041f\u0438\u0442\u043e\u043d \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439\u00bb. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043e\u043d \u0432 \u043c\u0435\u043d\u044f \u043a\u0438\u043d\u0443\u043b \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u043d\u0430 <a href=\"http:\/\/stackoverflow.com\/questions\/11641098\/interpreting-a-benchmark-in-c-clojure-python-ruby-scala-and-others\">Interpreting a benchmark in C, Clojure, Python, Ruby, Scala and others \u2014 Stack Overflow<\/a>, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043e\u043d \u0434\u0430\u0436\u0435 \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u043d\u0435 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b (\u0438\u0431\u043e \u0442\u0430\u043c \u043f\u043e\u0447\u0442\u0438 \u043f\u0440\u044f\u043c\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u0435\u0441\u0442\u044c \u2014 \u043d\u0435 \u0442\u0430\u043a \u043f\u043b\u043e\u0445\u043e \u0432\u0441\u0435 \u0441 \u043f\u0438\u0442\u043e\u043d\u043e\u043c).<\/p>\n<p>  \u0418\u043c\u0435\u043b\u043e\u0441\u044c \u0432\u0432\u0438\u0434\u0443 \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u043e\u0442 \u044d\u0442\u043e (\u0432\u0440\u0435\u043c\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445):  <\/p>\n<pre><code class=\"bash\">  Sexy primes up to:        10k      20k      30k      100k   ---------------------------------------------------------   Python2.7                1.49     5.20    11.00       119        Scala2.9.2               0.93     1.41     2.73     20.84   Scala2.9.2 (optimized)   0.32     0.79     1.46     12.01 <\/code><\/pre>\n<p>  <a name=\"habracut\"><\/a>\u0420\u0430\u0437\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044c \u0441 \u043d\u0438\u043c \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435, \u043f\u0440\u043e \u0447\u0438\u0441\u0442\u043e \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443, \u043d\u0435\u0442 \u043d\u0438 \u043c\u0430\u043b\u0435\u0439\u0448\u0435\u0433\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u044f. \u0422.\u0435. \u043f\u0440\u043e \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438\/\u043f\u0443\u043b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, GC (\u0443 \u043d\u0430\u0441 \u043d\u0435 \u0447\u0438\u0441\u0442\u044b\u0439 CPython, \u0441\u043a\u043e\u0440\u0435\u0435 \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 RPython \u0438\u043b\u0438 pypy \u0441 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c Jit, MemMgr, GC), \u043f\u0440\u043e \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u0430\u0445\u0430\u0440, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0447\u0435\u043b\u043e\u0432\u0435\u043a, \u043f\u0438\u0441\u0430\u0432\u0448\u0438\u0439 \u0431\u0435\u043d\u0447\u044c, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0449\u0438\u043b \u0438 \u0442.\u0434.<br \/>  \u041c\u043e\u0439 \u043e\u0442\u0432\u0435\u0442 \u0431\u044b\u043b \u00ab\u043b\u044e\u0431\u044f\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u0435 \u043d\u0435 \u0437\u0430 \u044d\u0442\u043e\u00bb \u0438 \u00ab\u043d\u0430 \u043d\u0435\u043c \u0442\u0430\u043a \u043d\u0435 \u043f\u0438\u0448\u0443\u0442, \u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0439 \u043a \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043a\u043e\u0434\u00bb. \u042f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043b\u0443\u043a\u0430\u0432\u0438\u043b \u0438 \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f benchmark \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439, \u043d\u0443 \u0442.\u0435. \u0437\u043d\u0430\u0447\u0438\u0442 \u0447\u0438\u0441\u0442\u043e \u043f\u043e\u043c\u0435\u0440\u0438\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c. \u041d\u043e \u0438 \u0431\u043e\u043b\u044f\u0447\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438 \u0442\u0430\u043a\u043e\u043c \u0442\u0435\u0441\u0442\u0435 \u043f\u043e\u0432\u044b\u0441\u043a\u0430\u043a\u0438\u0432\u0430\u044e\u0442 \u0432 CPython, \u043c\u043d\u0435 \u0442\u043e\u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b. <br \/>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0435 \u0436\u0435 \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e\u0442 \u0442\u0435\u0441\u0442 \u043d\u0435 \u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u0435\u043d, \u043d\u0443 \u0438\u043b\u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0447\u0442\u043e \u043b\u0438.<\/p>\n<p>  \u041d\u0430\u0447\u0430\u043b \u0441 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u0435\u043c\u0443 \u044d\u0442\u043e\u0442 \u0442\u0435\u0441\u0442 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f (\u043f\u043e\u043c\u0435\u0447\u0435\u043d\u044b \u0437\u0432\u0435\u0437\u0434\u043e\u0439) \u0432 PyMNg (\u0447\u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0430\u0448\u0430 \u0441\u0431\u043e\u0440\u043a\u0430), pypy2, pypy3 \u0438 python3 (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u043e \u0436\u0435 \u0431\u044b\u043b \u043f\u043e \u0442\u0435\u043c \u0436\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439). \u0416\u0435\u043b\u0435\u0437\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0434\u0440\u0443\u0433\u043e\u0435, \u043d\u043e \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0434\u0443\u043c\u0430\u044e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432.  <\/p>\n<pre><code class=\"bash\">  Sexy primes up to:        10k      20k      30k      100k   ---------------------------------------------------------   PyMNg                *   0.10        -        -      2.46   pypy2                *   0.13        -        -      5.44   pypy3                *   0.12        -        -      5.69   ---------------------------------------------------------   Python3.4            *   1.41        -        -    117.69   ---------------------------------------------------------   Python2.7                1.49     5.20    11.00    119.00   Scala2.9.2               0.93     1.41     2.73     20.84   Scala2.9.2 (optimized)   0.32     0.79     1.46     12.01 <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u044c\u0448\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043d\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c, \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0443, \u0432 \u0447\u0435\u043c \u043e\u043d \u043d\u0435 \u043f\u0440\u0430\u0432, \u0447\u0442\u043e \u0432\u044b\u0431\u043e\u0440 \u044f\u0437\u044b\u043a\u0430 \u043d\u0435 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0430\u043c \u0442\u0438\u043f\u0430 \u00abHello, world\u00bb \u0438 \u0442.\u0434.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u0438\u0449\u0435\u043c \u00ab\u0441\u0435\u043a\u0441\u0443\u0430\u043b\u044c\u043d\u044b\u0435\u00bb \u043f\u0430\u0440\u044b \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u0435. \u041c\u043d\u043e\u0433\u043e \u0438 \u0431\u044b\u0441\u0442\u0440\u043e.<\/p>\n<p>  \u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u043e\u043c\u0443 \u0440\u0430\u0437\u0431\u043e\u0440 \u043f\u043e\u043b\u0435\u0442\u043e\u0432 \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d, <a href=\"https:\/\/github.com\/sebres\/misc\/blob\/master\/python\/sexy-primes-test.py\">\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 github<\/a>, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u043f\u043e\u0434 \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u043e\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<br \/>  <b>100K<\/b> \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">pypy3 sexy-primes-test.py 100K<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">  org =  5.69000 s =   5690.00 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]   mod1 =  2.45500 s =   2455.00 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]   mod2 =  1.24300 s =   1243.00 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]   org2 =  3.46800 s =   3468.00 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]    max =  0.03200 s =     32.00 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]   orgm =  0.13000 s =    130.00 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]  siev1 =  0.01200 s =     12.00 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]  siev2 =  0.01000 s =     10.00 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]  osie1 =  0.01200 s =     12.00 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]  osie2 =  0.00200 s =      2.00 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929] <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">python34 sexy-primes-test.py 100K<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">  org = 120.75802 s = 120758.02 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]   mod1 = 132.99282 s = 132992.82 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]   mod2 = 76.65101 s =  76651.01 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]   org2 = 53.42527 s =  53425.27 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]    max =  0.44004 s =    440.04 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]   orgm =  0.39003 s =    390.03 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]  siev1 =  0.04000 s =     40.00 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]  siev2 =  0.04250 s =     42.50 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]  osie1 =  0.04500 s =     45.00 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929]  osie2 =  0.04250 s =     42.50 mils | 2447 sp: [5, 11], [7, 13], ... [99901, 99907], [99923, 99929] <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <b>10M<\/b> \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 <code>max<\/code> (\u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0435 \u043d\u0430 \u0442\u0430\u043a\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435).  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">pypy3 sexy-primes-test.py 10M max<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">  max =  5.28500 s =   5285.00 mils | 117207 sp: [5, 11], [7, 13], ... [9999931, 9999937], [9999937, 9999943]   orgm = 12.65600 s =  12656.00 mils | 117207 sp: [5, 11], [7, 13], ... [9999931, 9999937], [9999937, 9999943]  siev1 =  0.51800 s =    518.00 mils | 117207 sp: [5, 11], [7, 13], ... [9999931, 9999937], [9999937, 9999943]  siev2 =  0.23200 s =    232.00 mils | 117207 sp: [5, 11], [7, 13], ... [9999931, 9999937], [9999937, 9999943]  osie1 =  0.26800 s =    268.00 mils | 117207 sp: [5, 11], [7, 13], ... [9999931, 9999937], [9999937, 9999943]  osie2 =  0.22700 s =    227.00 mils | 117207 sp: [5, 11], [7, 13], ... [9999931, 9999937], [9999937, 9999943] <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">python34 sexy-primes-test.py 10M max<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">  max = 288.81855 s = 288818.55 mils | 117207 sp: [5, 11], [7, 13], ... [9999931, 9999937], [9999937, 9999943]   orgm = 691.96458 s = 691964.58 mils | 117207 sp: [5, 11], [7, 13], ... [9999931, 9999937], [9999937, 9999943]  siev1 =  4.02766 s =    4027.66 mils | 117207 sp: [5, 11], [7, 13], ... [9999931, 9999937], [9999937, 9999943]  siev2 =  4.05016 s =    4050.16 mils | 117207 sp: [5, 11], [7, 13], ... [9999931, 9999937], [9999937, 9999943]  osie1 =  4.69519 s =    4695.19 mils | 117207 sp: [5, 11], [7, 13], ... [9999931, 9999937], [9999937, 9999943]  osie2 =  4.43018 s =    4430.18 mils | 117207 sp: [5, 11], [7, 13], ... [9999931, 9999937], [9999937, 9999943] <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <b>100M<\/b> \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 <code>siev1<\/code> (\u043f\u043e \u0442\u043e\u0439 \u0436\u0435 \u043f\u0440\u0438\u0447\u0438\u043d\u0435).  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">pypy3 sexy-primes-test.py 100M siev1<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">siev1 =  7.39800 s =   7398.00 mils | 879908 sp: [5, 11], [7, 13], ... [99999617, 99999623], [99999821, 99999827]  siev2 =  2.24500 s =   2245.00 mils | 879908 sp: [5, 11], [7, 13], ... [99999617, 99999623], [99999821, 99999827]  osie1 =  2.53500 s =   2535.00 mils | 879908 sp: [5, 11], [7, 13], ... [99999617, 99999623], [99999821, 99999827]  osie2 =  2.31000 s =   2310.00 mils | 879908 sp: [5, 11], [7, 13], ... [99999617, 99999623], [99999821, 99999827] <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">python34 sexy-primes-test.py 100M siev1<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">siev1 = 41.87118 s =  41871.18 mils | 879908 sp: [5, 11], [7, 13], ... [99999617, 99999623], [99999821, 99999827]  siev2 = 40.71163 s =  40711.63 mils | 879908 sp: [5, 11], [7, 13], ... [99999617, 99999623], [99999821, 99999827]  osie1 = 48.08692 s =  48086.92 mils | 879908 sp: [5, 11], [7, 13], ... [99999617, 99999623], [99999821, 99999827]  osie2 = 44.05426 s =  44054.26 mils | 879908 sp: [5, 11], [7, 13], ... [99999617, 99999623], [99999821, 99999827] <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438 \u0442\u0430\u043a\u043e\u0439 \u0440\u0430\u0437\u0431\u0440\u043e\u0441 \u043c\u0435\u0436\u0434\u0443 CPython \u0438 PyPy \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u043e \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043f\u0440\u0438\u0447\u0438\u043d, \u043f\u043e\u0447\u0435\u043c\u0443 \u043b\u044e\u0434\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044f\u0442 \u043d\u0430 PyPy, \u043f\u0438\u0448\u0443\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0430\u043b\u043e\u043a\u0430\u0442\u043e\u0440\u044b, \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b \u043f\u0430\u043c\u044f\u0442\u0438, GC, stackless \u0438 \u0438\u0436\u0435 \u0441 \u043d\u0438\u043c\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 NumPy) \u0438 \u0434\u0435\u043b\u0430\u044e\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0441\u0431\u043e\u0440\u043a\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u0433\u0434\u0430 \u0432\u0430\u0436\u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438 \u043a\u0430\u043a \u0437\u0434\u0435\u0441\u044c, \u0438\u043c\u0435\u0435\u043c \u00ab\u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u043e\u0435\u00bb \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0443\u043b\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \/ \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b \u0438 \u0442.\u0434. \u0422\u0430\u043a \u0436\u0435 \u0431\u044b\u043b\u043e \u043a\u043e\u0433\u0434\u0430-\u0442\u043e \u0434\u0430\u0432\u043d\u043e \u0438 \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u043b\u0438 \u0441 \u0447\u0438\u0441\u0442\u043e\u0433\u043e \u043f\u0438\u0442\u043e\u043d\u0430. \u0422\u0430\u043c \u0435\u0449\u0435 \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e \u0438 \u0442\u043e\u0440\u043c\u043e\u0437\u044f\u0449\u0438\u0439 multithreding \u0438 refcounting \u0438 \u0442.\u0434. \u041d\u043e \u0441\u0430\u043c \u043f\u0435\u0440\u0435\u0435\u0437\u0434 \u0431\u044b\u043b \u043e\u0431\u0434\u0443\u043c\u0430\u043d\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0432\u0441\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0430 \u043d\u0435 \u00ab\u0441\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0439\u00bb \u0441\u0432\u0435\u0440\u0445\u0443 \u043f\u0440\u0438\u0447\u0443\u0434\u043e\u0439. \u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u0438 \u043d\u0430\u0439\u0434\u0443 \u0432\u0440\u0435\u043c\u044f, \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0442\u0438\u0441\u043d\u0443\u0442\u044c \u043f\u0440\u043e \u044d\u0442\u043e \u0441\u0442\u0430\u0442\u044c\u044e.<\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0439 \u0436\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u00ab\u0437\u0430\u0434\u0430\u0447\u0438\u00bb, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 C-binding, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u0438 \u0442\u0438\u043f\u0430 numpy \u0438 \u0442.\u0434. \u042f \u0436\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0443\u0431\u0435\u0434\u0438\u0442\u044c \u043a\u043e\u043b\u043b\u0435\u0433\u0443, \u0447\u0442\u043e \u043e\u043d\u043e, \u043d\u0430 \u043a\u043e\u043b\u0435\u043d\u043a\u0435, \u0437\u0430 \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u00ab\u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u00bb, \u0435\u0441\u043b\u0438 \u0437\u043d\u0430\u0435\u0448\u044c \u043a\u0430\u043a \u043f\u0438\u0442\u043e\u043d \u0442\u0438\u043a\u0430\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u0438.<\/p>\n<p>  \u0418\u0442\u0430\u043a \u043d\u0430\u0447\u043d\u0435\u043c \u0434\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0443, \u0447\u0442\u043e \u0438 \u043f\u0438\u0442\u043e\u043d \u0443\u043c\u0435\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u00ab\u0431\u0435\u0433\u0430\u0442\u044c\u00bb, \u0435\u0441\u043b\u0438 \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430, \u0430 \u043d\u0435 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0442\u0435\u0441\u0442.<\/p>\n<p>  \u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0439 \u043c\u043d\u043e\u0439 \u0434\u043b\u044f \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0442\u0440\u0435\u0442\u044c\u0435\u0433\u043e \u043f\u0438\u0442\u043e\u043d\u0430, \u044d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0443 \u043c\u0435\u043d\u044f \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435-\u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <code>org<\/code>. <sub>(\u0422\u043e\u043b\u044c\u043a\u043e \u043f\u043b\u0437, \u043d\u0435 \u043d\u0430\u0434\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e \u00abxrange vs range\u00bb \u2014 \u044f \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u0432 \u0447\u0435\u043c \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0435, \u0438 \u0437\u0434\u0435\u0441\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u043e\u043d\u043e \u043d\u0435 \u0441\u0443\u0442\u044c \u0432\u0430\u0436\u043d\u043e, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0432 3-\u043c \u043f\u0438\u0442\u043e\u043d\u0435, \u043a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e \u0438 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044f \u043a\u0430\u043a-\u0431\u044b \u00ab\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u0430\u044f\u00bb).<\/sub>  <\/p>\n<pre><code class=\"python\">def is_prime(n):   return all((n % i &gt; 0) for i in range(2, n)) # def sexy_primes_below(n): #   return [[j-6, j] for j in range(9, n+1) if is_prime(j) and is_prime(j-6)] def sexy_primes_below(n):   l = []   for j in range(9, n+1):     if is_prime(j-6) and is_prime(j):       l.append([j-6, j])   return l <\/code><\/pre>\n<p>  \u0422.\u043a. \u0434\u0430\u0436\u0435 \u043d\u0430 10M \u0438\u043c\u0435\u0435\u043c \u0432\u0441\u0435\u0433\u043e 100K sexy \u043f\u0430\u0440, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 <code>primes_below<\/code> \u043d\u0430 \u043c\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441 \u043f\u0440\u044f\u043c\u044b\u043c \u0446\u0438\u043a\u043b\u043e\u043c \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u043d\u043e \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u0435\u0439 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u0445 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0438\u0442\u043e). \u0412\u0435\u0441\u044c \u0446\u0438\u043c\u0435\u0441 \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 <code>is_prime<\/code>, \u0432\u043e \u0432\u0441\u044f\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u043a\u0430.<\/p>\n<p>  1. \u0412\u043e \u043f\u0435\u0440\u0432\u044b\u0445, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u00ab\u0441\u0430\u0445\u0430\u0440\u0430\u00bb \u043a\u0430\u043a \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0435 (\u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0432 \u00ab\u0441\u0431\u043e\u0440\u043a\u0430\u0445\u00bb \u0442\u0438\u043f\u0430 PyPy, \u043d\u0443 \u0438\u043b\u0438 \u043d\u0430\u0448\u0435\u0433\u043e PyMNg) \u043d\u0435 \u043f\u043e\u043e\u0449\u0440\u044f\u0435\u0442\u0441\u044f, \u043d\u0443 \u0438\u043b\u0438 \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c, \u043a\u0430\u043a \u0438 \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0431\u043e\u043b\u044c\u043d\u043e \u0431\u044c\u0435\u0442 \u043e\u0442\u0434\u0430\u0447\u0435\u0439 \u0432 \u0432\u0438\u0434\u0435 \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438. \u041f\u0435\u0440\u0435\u043f\u0438\u0448\u0435\u043c \u044d\u0442\u043e \u043a\u0430\u043a \u0432\u0430\u0440\u0438\u0430\u043d\u0442 <b><code>mod1<\/code><\/b>  <\/p>\n<pre><code class=\"python\">def is_prime(n):   i = 2   while True:     if not n % i:        return False     i += 1     if i &gt;= n:        return True   return True <\/code><\/pre>\n<p>  \u0423\u0436\u0435 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0432 PyPy. \u041d\u043e \u0434\u0435\u043b\u043e \u043d\u0435 \u0432 \u044d\u0442\u043e\u043c\u2026<\/p>\n<p>  2. \u041a\u043e\u0434 \u0441\u0442\u0430\u043b \u0441\u0440\u0430\u0437\u0443 \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u0435\u0439 \u0438 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a <b><code>mod2<\/code><\/b> \u0432 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0435\u0441\u043b\u0438 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0447\u0435\u0442\u043d\u044b\u0435 \u043d\u043e\u043c\u0435\u0440\u0430 (\u043a\u043e\u0442\u043e\u0440\u044b\u0435, \u043a\u0440\u043e\u043c\u0435 \u0434\u0432\u043e\u0439\u043a\u0438, \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043d\u0435 prime).  <\/p>\n<pre><code class=\"python\">def is_prime(n):   if not n % 2:     return False   i = 3   while True:     if n % i == 0:        return False     i += 2     if i &gt;= n:        return True   return True <\/code><\/pre>\n<p>  \u041f\u043e\u043f\u0440\u0430\u0432\u0438\u043c \u044d\u0442\u043e \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0435 \u2014 <b><code>org2<\/code><\/b> \u044d\u0442\u043e \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0447\u0442\u043e \u0438 <b><code>mod2<\/code><\/b>, \u043d\u043e \u0432 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u00ab\u0441\u0430\u0445\u0430\u0440\u00bb.  <\/p>\n<pre><code class=\"python\">def is_prime(n):   return n % 2 and all(n % i for i in range(3, n, 2)) <\/code><\/pre>\n<p>  3. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u0434\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u0440\u043d\u044f (\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0434\u043e \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u043d\u043e\u0433\u043e, \u043d\u043e \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043f\u0440\u043e\u0449\u0435 \u2014 \u044d\u0442\u043e \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0435\u0441\u0442), \u0442\u043e \u0432\u0441\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0449\u0435 \u043d\u0430 \u043c\u043d\u043e\u0433\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442 <b><code>max<\/code><\/b>:  <\/p>\n<pre><code class=\"python\">def is_prime(n):   if not n & 1:     return 0   i = 3   while 1:     if not n % i:        return 0     if i * i &gt; n:        return 1     i += 2   return 1 <\/code><\/pre>\n<p>\u041d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043f\u0440\u0430\u0432\u0434\u0430.<\/p>\n<p>  \u041e\u043f\u044f\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043c \u044d\u0442\u043e \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0435 \u2014 <b><code>orgm<\/code><\/b>.  <\/p>\n<pre><code class=\"python\">def is_prime(n):   #return ((n & 1) and all(n % i for i in range(3, int(math.sqrt(n))+1, 2)))   return ((n & 1) and all(n % i for i in range(3, int(n**0.5)+1, 2))) <\/code><\/pre>\n<p>  \u0418 \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0432 PyPy \u043e\u043d\u043e \u043e\u043f\u044f\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 (\u0445\u043e\u0442\u044f \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438 \u0438\u0437-\u0437\u0430 \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u0430 \u00ab\u043a\u043e\u0440\u043d\u044f\u00bb, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 range).<\/p>\n<p>  4. \u0422\u0443\u0442 \u0443 \u043a\u043e\u043b\u043b\u0435\u0433\u0438 \u0437\u0430\u0433\u043e\u0440\u0430\u044e\u0442\u0441\u044f \u0433\u043b\u0430\u0437\u0430, \u0438 \u043e\u043d \u043a\u0430\u043a \u0432 \u0442\u043e\u043c \u043c\u0443\u043b\u044c\u0442\u0444\u0438\u043b\u044c\u043c\u0435 (\u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u00ab\u0416\u0430\u0434\u043d\u044b\u0439 \u0431\u043e\u0433\u0430\u0447\u00bb) \u043f\u0440\u043e \u0441\u043a\u043e\u0440\u043d\u044f\u043a\u0430 \u0438 7 \u0448\u0430\u043f\u043e\u043a \u0432\u044b\u0434\u0430\u0435\u0442: \u00ab\u0410 \u043c\u043e\u0436\u0435\u0448\u044c \u0435\u0449\u0435 \u0431\u044b\u0441\u0442\u0440\u0435\u0435?\u00bb. \u0422.\u043a. \u043f\u043e \u043f\u0430\u043c\u044f\u0442\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u0442 (\u043d\u0435 emdedded \u0438 \u0442.\u0434.) \u0440\u0435\u0448\u0438\u043b \u0435\u043c\u0443 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u00ab\u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0447\u0430\u0442\u043e\u0435\u00bb \u0441\u0438\u0442\u043e \u2014 half sieve, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0444\u043b\u0430\u0436\u043a\u043e\u0432 \u043f\u043e \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044e \u0434\u043b\u044f \u043d\u0435\u0447\u0435\u0442\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, \u0442.\u0435. \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043d\u0430 2. \u0422\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u0447\u0442\u043e \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0435 \u0441\u0438\u0442\u043e \u043d\u0430 \u0440\u0430\u0437-\u0434\u0432\u0430.<br \/>  \u041d\u0443 \u0438 \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u043e\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c <code>sexy_primes_below<\/code>, \u0432\u044b\u0437\u0432\u0430\u0432 \u0432 \u043d\u0435\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u0441\u0438\u0442\u0430 \u043d\u0443 \u0438 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0438 \u043d\u0435 \u043f\u0440\u0430\u0432\u0438\u0442\u044c <code>is_prime<\/code> \u0432 \u0446\u0438\u043a\u043b\u0435, \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0441\u0440\u0430\u0437\u0443 <code>sieve<\/code>. <br \/>  \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442 <b><code>siev1<\/code><\/b>.   <\/p>\n<pre><code class=\"python\">def primes_sieve(n):   &quot;&quot;&quot; temporary &quot;half&quot; mask sieve for primes &lt; n (using bool) &quot;&quot;&quot;   sieve = [True] * (n\/\/2)   for i in range(3, int(n**0.5)+1, 2):     if sieve[i\/\/2]:       sieve[i*i\/\/2::i] = [False] * ((n-i*i-1)\/\/(2*i)+1)   return sieve def sexy_primes_below(n):   l = []   sieve = primes_sieve(n+1)   #is_prime = lambda j: (j & 1) and sieve[int(j\/2)]   for j in range(9, n+1):     i = j-6     #if (i & 1) and is_prime(i) and is_prime(j):     if (i & 1) and sieve[int(i\/2)] and sieve[int(j\/2)]:       l.append([i, j])   return l <\/code><\/pre>\n<p>\u042d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0431\u044b\u0441\u0442\u0440\u044b\u0439, \u0447\u0442\u043e \u0432 PyPy \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043e\u043d \u043d\u0430 100M \u0432\u044b\u0434\u0430\u0435\u0442 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0442\u043e-\u0436\u0435 \u0432\u0440\u0435\u043c\u044f, \u0447\u0442\u043e \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u043d\u0430 100K. \u0422.\u0435. \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044f \u0432 2000 \u0440\u0430\u0437 \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0438\u0441\u0435\u043b \u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044f \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0435\u043a\u0441\u0443\u0430\u043b\u044c\u043d\u043e-\u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u043f\u0430\u0440.<\/p>\n<p>  \u0421\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b \u0432 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 <b><code>siev2<\/code><\/b>, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b \u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u00ab\u0442\u0443\u043f\u043e\u0432\u0430\u0442\u043e\u0439\u00bb \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 bool \u0432 PyPy. \u0422.\u0435. \u0437\u0430\u043c\u0435\u043d\u0438\u0432 \u0431\u0443\u043b\u0435\u0432\u044b \u0444\u043b\u0430\u0436\u043a\u0438 \u043d\u0430 0\/1. \u042d\u0442\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 100M \u0443\u0436\u0435 \u0432\u0434\u0432\u043e\u0435-\u0442\u0440\u043e\u0435 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0430 \u043d\u0430 100K!<\/p>\n<p>  5. \u0412\u0430\u0440\u0438\u0430\u043d\u0442\u044b <b><code>osiev1<\/code><\/b> \u0438 <b><code>osiev2<\/code><\/b> \u043d\u0430\u043f\u0438\u0441\u0430\u043b, \u0447\u0442\u043e\u0431\u044b \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0438\u0442\u043e \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0447\u0438\u0441\u0435\u043b, \u043d\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0431\u043e\u043b\u0435\u0435 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0445, \u0442.\u0435. \u0447\u0442\u043e\u0431\u044b \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u0438\u0441\u043a \u043f\u0430\u0440 \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e \u0438\u043b\u0438 \u0431\u043b\u043e\u0447\u043d\u043e. <br \/>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b \u0441\u0438\u0442\u043e \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0439, \u043d\u0430 \u043f\u0440\u044f\u043c\u043e\u0435 \u0441\u0438\u0442\u043e \u0445\u0440\u0430\u043d\u044f\u0449\u0435\u0435 \u043d\u0435 \u0444\u043b\u0430\u0433\u0438, \u0430 \u0443\u0436\u0435 \u0441\u0430\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:  <\/p>\n<pre><code class=\"python\">sieve = [1, 1, 1, 0, 1, 1 ...]; # \u0434\u043b\u044f 3, 5, 7, 9, 11, 13 ... osieve = [3, 5, 7, 0, 11, 13, ...]; # \u0434\u043b\u044f 3, 5, 7, 9, 11, 13 ... <\/code><\/pre>\n<p>  \u0412\u0430\u0440\u0438\u0430\u043d\u0442 <b><code>osiev1<\/code><\/b>.  <\/p>\n<pre><code class=\"python\">def primes_sieve(n):   &quot;&quot;&quot; temporary odd direct sieve for primes &lt; n &quot;&quot;&quot;   sieve = list(range(3, n, 2))   l = len(sieve)   for i in sieve:     if i:       f = (i*i-3) \/\/ 2       if f &gt;= l:         break       sieve[f::i] = [0] * -((f-l) \/\/ i)   return sieve def sexy_primes_below(n):   l = []   sieve = primes_sieve(n+1)   #is_prime = lambda j: (j & 1) and sieve[int((j-2)\/2)]   for j in range(9, n+1):     i = j-6     #if (i & 1) and is_prime(i) and is_prime(j):     if (i & 1) and sieve[int((i-2)\/2)] and sieve[int((j-2)\/2)]:       l.append([i, j])   return l <\/code><\/pre>\n<p>  \u041d\u0443 \u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 <b><code>osiev2<\/code><\/b> \u043f\u0440\u043e\u0441\u0442\u043e \u00ab\u0447\u0443\u0442\u044c\u00bb \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0442.\u043a. \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442 \u0441\u0438\u0442\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u0435\u0435.  <\/p>\n<pre><code class=\"python\">def primes_sieve(n):   &quot;&quot;&quot; temporary odd direct sieve for primes &lt; n &quot;&quot;&quot;   #sieve = list(range(3, n, 2))   l = ((n-3)\/\/2)   sieve = [-1] * l   for k in range(3, n, 2):     o = (k-3)\/\/2     i = sieve[o]     if i == -1:       i = sieve[(k-3)\/\/2] = k     if i:       f = (i*i-3) \/\/ 2       if f &gt;= l:         break       sieve[f::i] = [0] * -((f-l) \/\/ i)   return sieve <\/code><\/pre>\n<p>  \u042d\u0442\u0438 \u0434\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u0438\u0442\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u0441\u0438\u0442\u043e (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043a\u0430\u0442\u044c \u043f\u0430\u0440\u044b \u0431\u043b\u043e\u0447\u043d\u043e \u043f\u043e 10K \u0438\u043b\u0438 100K). \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u0431\u044b \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u044c \u043f\u0440\u0438 \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0430 osieve \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0441 1G \u0438\u043b\u0438 10G, \u043c\u044b \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u043c MemoryError \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 (\u043d\u0443 \u0438\u043b\u0438 \u0432\u044b \u0431\u043e\u0433\u0430\u0442\u044b\u0439 \u0431\u0443\u0440\u0430\u0442\u0438\u043d\u043e \u2014 \u0438 \u0443 \u0432\u0430\u0441 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 64-\u0445 \u0431\u0438\u0442\u043d\u044b\u0439 \u043f\u0438\u0442\u043e\u043d :).<\/p>\n<p>  \u042f \u043d\u0435 \u0441\u0442\u0430\u043b \u0434\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u0442\u044c \u0431\u043b\u043e\u0447\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 (\u0435\u0433\u043e \u043d\u0435\u0442 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435-\u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u043f\u0443\u0441\u0442\u044c \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043a\u0430\u043a \u0431\u044b \u00ab\u0434\u043e\u043c\u0430\u0448\u043d\u0438\u043c \u0437\u0430\u0434\u0430\u043d\u0438\u0435\u043c\u00bb, \u0435\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u043a\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0437\u0430\u0445\u043e\u0447\u0435\u0442.), \u0442.\u043a. \u043c\u043e\u0439 \u043a\u043e\u043b\u043b\u0435\u0433\u0430 \u0443\u0436\u0435 \u0440\u0430\u0441\u043a\u0430\u044f\u043b\u0441\u044f, \u0432 \u0432\u043e\u0441\u0445\u0438\u0449\u0435\u043d\u0438\u0438 \u043e\u0442\u043a\u043b\u0430\u043d\u044f\u0432\u0448\u0438\u0441\u044c, \u0438 \u044f \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0437\u0430\u0431\u0438\u0432\u0430\u0442\u044c \u0433\u043e\u043b\u043e\u0432\u0443 \u043c\u043d\u0435 (\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0435) \u0442\u0430\u043a\u043e\u0439 \u0435\u0440\u0443\u043d\u0434\u043e\u0439.<\/p>\n<p>  \u0410 \u043d\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 100K \u0432\u0440\u0435\u043c\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0443\u0436\u0435 \u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u2014 0.00 mils (\u044f \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u0430\u043b \u0435\u0433\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f times \u0434\u043e 10).<br \/>  \u0412 \u0447\u0435\u043c \u044f \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0443\u0432\u0435\u0440\u0435\u043d \u2014 \u044d\u0442\u043e \u0442\u043e, \u0447\u0442\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0435\u0449\u0435 \u043d\u0430 \u043e\u0434\u0438\u043d \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0432\u0440\u044f\u0434 \u043b\u0438 \u0443\u0434\u0430\u0441\u0442\u0441\u044f, \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 scala, \u043d\u043e \u0438 \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c C. \u0415\u0441\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043d\u043e\u0432\u0430 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u2026<\/p>\n<p>  \u0421\u0430\u043c <a href=\"https:\/\/github.com\/sebres\/misc\/blob\/master\/python\/sexy-primes-test.py\">\u0441\u043a\u0440\u0438\u043f\u0442<\/a> \u0431\u0443\u0434\u0435 \u043a\u0442\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043c\u043e\u0436\u043d\u043e \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e\u043c\u043e\u0449\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"bash\">sexy-primes-test.py --help <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0447\u0442\u043e, \u043f\u0440\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0438 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e <a href=\"http:\/\/ru.wikihow.com\/%D0%BF%D1%80%D0%BE%D0%B2%D0%B5%D1%80%D0%B8%D1%82%D1%8C,-%D1%8F%D0%B2%D0%BB%D1%8F%D0%B5%D1%82%D1%81%D1%8F-%D0%BB%D0%B8-%D1%87%D0%B8%D1%81%D0%BB%D0%BE-%D0%BF%D1%80%D0%BE%D1%81%D1%82%D1%8B%D0%BC\">\u0432 wikihow<\/a>.     \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/259095\/\"> http:\/\/habrahabr.ru\/post\/259095\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u041c\u043d\u043e\u0433\u0438\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0435\u0439: \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043a\u043e\u043b\u043b\u0435\u0433\u0430 (\u0440\u0430\u0437\u0440\u0430\u0431, \u043f\u0440\u043e\u0435\u043a\u0442\u043b\u0438\u0434 \u0438\u043b\u0438 \u043f\u0440\u043e\u0434\u0430\u0436\u043d\u0438\u043a \u043d\u0435 \u0441\u0443\u0442\u044c \u0432\u0430\u0436\u043d\u043e) \u0441 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0438\u0434\u0435\u0435\u0439-\u0444\u0438\u043a\u0441: \u0434\u0430\u0432\u0430\u0439 \u043f\u0435\u0440\u0435\u043f\u0438\u0448\u0435\u043c \u0432\u0441\u0435 \u043d\u0430 java, scala \u0438 \u0442.\u0434. (\u043b\u044e\u0431\u0438\u043c\u043e\u0435 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c).<\/p>\n<p>  \u0412\u043e\u0442 \u0438 \u043c\u043d\u0435 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0440\u0430\u0437 \u00ab\u0441\u043f\u0443\u0441\u0442\u0438\u043b\u0438\u00bb \u0442\u0430\u043a\u0443\u044e \u0438\u0434\u0435\u044e \u0432 \u043d\u0435\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u043c-\u0442\u0430\u043a\u043e\u043c legacy \u043f\u0440\u043e\u0435\u043a\u0442\u0435. \u041d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c, \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0432\u0441\u0435 (\u043d\u0443 \u0432 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0435). \u0412 \u043e\u0431\u0449\u0435\u043c \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0441 \u043f\u0438\u0442\u043e\u043d\u0430 (\u0430 \u0443 \u043d\u0430\u0441 \u0442\u0430\u043c \u0435\u0449\u0435 \u0438 \u0442\u0438\u043a\u043b\u044c \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442) \u043d\u0430 scala. \u0420\u0435\u0447\u044c \u043f\u043e\u043a\u0430 \u0448\u043b\u0430 \u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043d\u043e\u0432\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u0442.\u0435. \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0441 \u043d\u0430\u0438\u043c\u0435\u043d\u0435\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u043a middle-level \u0438 front-nearby API&#8217;s. \u041a\u0430\u043a \u044f \u043f\u043e\u043d\u044f\u043b \u0432 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0432\u0441\u0435\u043c.<\/p>\n<p>  \u0427\u0435\u043b\u043e\u0432\u0435\u043a \u2014 \u043d\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a, \u0442\u0438\u043f\u0430 \u043d\u0430\u0447-\u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0430\u0436\u043d\u0438\u043a (\u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430) \u0432 \u043e\u0434\u043d\u043e\u043c \u043b\u0438\u0446\u0435.<\/p>\n<p>  \u042f \u043d\u0435 \u0442\u043e, \u0447\u0442\u043e \u0431\u044b \u043f\u0440\u043e\u0442\u0438\u0432. \u0418 \u0441\u043a\u0430\u043b\u0443 \u0443\u0432\u0430\u0436\u0430\u044e \u0438 \u043f\u043e \u0441\u0432\u043e\u0435\u043c\u0443 \u043b\u044e\u0431\u043b\u044e. \u041e\u0431\u044b\u0447\u043d\u043e \u044f \u0432\u043e\u043e\u0431\u0449\u0435 \u043e\u0442\u043a\u0440\u044b\u0442 \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u043d\u043e\u0432\u043e\u043c\u0443. \u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u043a\u0440\u043e\u043c\u0435 \u0442\u0438\u043a\u043b\u044f \u0438 \u043f\u0438\u0442\u043e\u043d\u0430 \u0443 \u043d\u0430\u0441 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0438\u043b\u0438 \u043c\u043e\u0434\u0443\u043b\u0438 \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u0430\u0445. \u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u043b\u0438 \u0441 cvs \u043d\u0430 svn, \u0430 \u0437\u0430\u0442\u0435\u043c \u043d\u0430 git (\u0430 \u0440\u0430\u043d\u044c\u0448\u0435, \u0434\u0430\u0432\u043d\u043e-\u0434\u0430\u0432\u043d\u043e, \u0432\u043e\u043e\u0431\u0449\u0435 MS-VSS \u0431\u044b\u043b). \u041f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043c\u0430\u0441\u0441\u0430, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0438\u0445 \u043e\u0434\u0438\u043d \u043c\u043e\u043c\u0435\u043d\u0442 \u2014 \u0442\u0430\u043a \u0440\u0435\u0448\u0438\u043b\u0438 \u0438\u043b\u0438 \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043e\u0434\u043e\u0431\u0440\u0438\u043b\u0438 \u0441\u0430\u043c\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 (\u043a\u043e\u043b\u043b\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u043b\u0438, \u0438\u043b\u0438 \u0431\u044b\u043b\u0430 \u0433\u0440\u0443\u043f\u043f\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u0442\u043e\u0440\u043e\u0432 \u2014 \u043d\u0435 \u0441\u0443\u0442\u044c \u0432\u0430\u0436\u043d\u043e). \u0414\u0430 \u0438 \u0434\u0435\u043b\u043e \u0432 \u043e\u0431\u0449\u0435\u043c \u0432 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u0445 \u0437\u0430 \u0438 \u043f\u0440\u043e\u0442\u0438\u0432.<\/p>\n<p>  \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u0434\u043b\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0434\u0438\u0441\u043a\u0443\u0441\u0441\u0438\u0438 \u00abDeveloper vs. Anybody-Else\u00bb \u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u043d\u0435 \u0434\u043e\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0437\u043d\u0430\u043d\u0438\u0439 \u00ab\u043c\u0430\u0442\u0435\u0440\u0438\u0438\u00bb \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u0434\u043e\u043d\u0435\u0441\u0442\u0438 \u043c\u044b\u0441\u043b\u044c \u2014 \u0442.\u0435. \u043a\u0430\u043a-\u0431\u044b \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u0430\u0445. \u0418 \u0445\u043e\u0440\u043e\u0448\u043e \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043a\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0442\u0438\u043f\u0430 software architect. \u0425\u0443\u0436\u0435 \u0435\u0441\u043b\u0438 \u0438\u043c\u0435\u0435\u043c \u00ab\u0431\u0435\u0441\u0435\u0434\u0443\u00bb \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441 \u0447\u0438\u0441\u0442\u044b\u043c \u00ab\u043f\u0440\u043e\u0434\u0430\u0436\u043d\u0438\u043a\u043e\u043c\u00bb, \u043e\u0433\u043b\u0430\u0441\u0438\u0432\u0448\u0438\u043c \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u044b\u0435 \u00ab\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u00bb \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0430.<\/p>\n<p>  \u041d\u0443 \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043f\u0440\u0435\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043b\u0438\u0442\u043e\u0447\u043d\u0438\u043a\u0443 \u2014 \u043a\u0430\u043a\u0438\u043c \u0448\u043f\u0430\u0442\u0435\u043b\u0435\u043c \u0435\u043c\u0443 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c (\u0442\u0438\u043f\u0430 \u0441 \u0437\u0443\u0431\u0446\u0430\u043c\u0438 10\u043c\u043c \u043a\u043b\u0435\u044f \u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0443\u0439\u0434\u0435\u0442, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u0441\u0435 \u0436\u0435 5\u043c\u043c. \u0410 \u0442\u043e \u0447\u0442\u043e \u0442\u0430\u043c \u043f\u043e\u043b\u044b-\u0441\u0442\u0435\u043d\u044b \u043a\u0440\u0438\u0432\u0443\u0449\u0438\u0435 \u043d\u0438\u043a\u043e\u0433\u043e \u043d\u0435 \u0432\u043e\u043b\u043d\u0443\u0435\u0442). \u0418 \u0448\u0443\u0440\u0443\u043f \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u00ab\u0437\u0430\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0442\u044c\u00bb \u043c\u043e\u043b\u043e\u0442\u043a\u043e\u043c, \u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0436\u0435 \u0435\u0441\u0442\u044c \u043e\u0442\u0432\u0435\u0440\u0442\u043a\u0430, \u0430 \u043f\u043e\u0437\u0436\u0435 \u0431\u044b\u043b \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d \u0448\u0443\u0440\u0443\u043f\u043e\u0432\u0451\u0440\u0442. \u0423\u0442\u0440\u0438\u0440\u0443\u044e \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0442\u0430\u043a\u043e\u0439 \u0432\u043e\u0442 \u0430\u0431\u0441\u0443\u0440\u0434.<br \/>  \u042d\u0442\u043e \u044f \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0432 \u0438\u0434\u0435\u0430\u043b\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u0430\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0438\u043b\u0438 \u0438\u043c\u0435\u0442\u044c \u0432 \u044d\u0442\u043e\u043c \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0441\u043b\u043e\u0432\u043e \u2014 \u0435\u043c\u0443 \u0441 \u044d\u0442\u0438\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c <s>\u0438\u043b\u0438 \u043c\u0443\u0447\u0438\u0442\u044c\u0441\u044f<\/s>.<\/p>\n<p>  \u041d\u043e \u0447\u0442\u043e-\u0442\u043e \u044f \u043e\u0442\u0432\u043b\u0435\u043a\u0441\u044f. \u0412 \u043c\u043e\u0435\u0439 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u2014 \u0437\u0430 scala, \u0443 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u043a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u0447\u0442\u0438 \u043d\u0438\u043a\u0430\u043a\u0438\u0445. <br \/>  \u0425\u043e\u0442\u044f \u044f \u043c\u043e\u0433 \u0431\u044b \u0434\u043e\u043b\u0433\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043f\u0440\u043e \u0432\u0435\u0449\u0438, \u0442\u0438\u043f\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0432, \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043e\u0442\u0442\u043e\u0447\u0435\u043d\u043d\u0443\u044e \u0438 \u043e\u0442\u043b\u0430\u0436\u0435\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0438 \u0442.\u0434. \u0438 \u0442.\u043f. \u041d\u043e \u0437\u0430\u0446\u0435\u043f\u0438\u043b\u0441\u044f \u0437\u0430 \u0435\u0433\u043e \u00ab\u041f\u0438\u0442\u043e\u043d \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439\u00bb. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043e\u043d \u0432 \u043c\u0435\u043d\u044f \u043a\u0438\u043d\u0443\u043b \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u043d\u0430 <a href=\"http:\/\/stackoverflow.com\/questions\/11641098\/interpreting-a-benchmark-in-c-clojure-python-ruby-scala-and-others\">Interpreting a benchmark in C, Clojure, Python, Ruby, Scala and others \u2014 Stack Overflow<\/a>, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043e\u043d \u0434\u0430\u0436\u0435 \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u043d\u0435 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b (\u0438\u0431\u043e \u0442\u0430\u043c \u043f\u043e\u0447\u0442\u0438 \u043f\u0440\u044f\u043c\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u0435\u0441\u0442\u044c \u2014 \u043d\u0435 \u0442\u0430\u043a \u043f\u043b\u043e\u0445\u043e \u0432\u0441\u0435 \u0441 \u043f\u0438\u0442\u043e\u043d\u043e\u043c).<\/p>\n<p>  \u0418\u043c\u0435\u043b\u043e\u0441\u044c \u0432\u0432\u0438\u0434\u0443 \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u043e\u0442 \u044d\u0442\u043e (\u0432\u0440\u0435\u043c\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445):  <\/p>\n<pre><code class=\"bash\">  Sexy primes up to:        10k      20k      30k      100k   ---------------------------------------------------------   Python2.7                1.49     5.20    11.00       119        Scala2.9.2               0.93     1.41     2.73     20.84   Scala2.9.2 (optimized)   0.32     0.79     1.46     12.01 <\/code><\/pre>\n<p>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-258296","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/258296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=258296"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/258296\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=258296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=258296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=258296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}