{"id":325002,"date":"2021-06-16T15:00:48","date_gmt":"2021-06-16T15:00:48","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=325002"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=325002","title":{"rendered":"\u00ab\u0414\u0435\u043b\u043e \u0431\u044b\u043b\u043e \u0432\u0435\u0447\u0435\u0440\u043e\u043c, \u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044b\u043b\u043e \u043d\u0435\u0447\u0435\u0433\u043e\u00bb \u0438\u043b\u0438 \u043a\u0440\u0430\u0442\u043a\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u044f\u0437\u044b\u043a\u043e\u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>&#171;\u0411\u0435\u043d\u0447&#187; \u0434\u0435\u043b\u043e \u0442\u0430\u043a\u043e\u0435&#8230; \u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0434\u043d\u0435\u0439 \u0431\u0435\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043b\u043e\u043c\u043a\u0430, \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0437\u0430\u043d\u044f\u0442\u044c \u0441\u0435\u0431\u044f \u0447\u0435\u043c-\u043d\u0438\u0431\u0443\u0434\u044c. \u0418\u043d\u043e\u0433\u0434\u0430 \u044f \u043e\u0442\u0432\u043b\u0435\u043a\u0430\u043b\u0441\u044f \u043d\u0430 pet-\u043f\u0440\u043e\u0435\u043a\u0442\u044b, \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435 \u043b\u0438\u0442\u0435\u0440\u0430\u0442\u044b\u0440\u044b&#8230; \u0421\u0435\u0439\u0447\u0430\u0441 \u0436\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0442\u043e\u043c \u0447\u0442\u043e \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e &#171;\u0440\u0435\u0436\u0438\u043c\u0430 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f&#187;.<\/p>\n<p>\u041c\u0435\u043d\u044f \u043c\u043d\u043e\u0433\u0438\u0435 \u0433\u043e\u0434\u044b \u0432\u043e\u043b\u043d\u043e\u0432\u0430\u043b\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u042f\u041f (\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b <strong>PHP<\/strong>). \u0421\u043f\u0438\u0441\u043e\u043a \u043d\u0438\u0436\u0435, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0438 \u0443\u0431\u0435\u0436\u0434\u0435\u043d\u0438\u044f, \u0434\u043e \u043d\u0435\u0434\u0430\u0432\u043d\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438:<\/p>\n<ul>\n<li>\n<p>PHP \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>Python \u0431\u044b\u0441\u0442\u0440\u0435\u0435 PHP<\/p>\n<\/li>\n<li>\n<p>Ruby \u0431\u044b\u0441\u0442\u0440\u0435\u0435 PHP<\/p>\n<\/li>\n<li>\n<p>C\/C++ \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 Python \u0438 PHP \u0432\u043c\u0435\u0441\u0442\u0435 \u0432\u0437\u044f\u0442\u044b\u0445<\/p>\n<\/li>\n<li>\n<p>Assembler \u043d\u0430 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0431\u044b\u0441\u0442\u0440\u0435\u0435 C\/C++<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/18d\/6d1\/60f\/18d6d160f88b63c935c3f137517cccfe.jpg\" width=\"600\" height=\"420\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043a\u0430\u043a\u043e\u0439 \u0442\u0435\u0441\u0442 \u0432\u0437\u044f\u0442\u044c \u0437\u0430 \u043e\u0441\u043d\u043e\u0432\u0443. \u0410 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%9F%D1%80%D0%BE%D1%81%D1%82%D0%BE%D0%B5_%D1%87%D0%B8%D1%81%D0%BB%D0%BE\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0447\u0438\u0441\u0435\u043b<\/a> (\u044f \u0432 \u043a\u0443\u0440\u0441\u0435 \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, <a href=\"https:\/\/habr.com\/ru\/post\/468833\/\" rel=\"noopener noreferrer nofollow\">\u043d\u0435\u043f\u043b\u043e\u0445\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f <\/a>\u043d\u0430 \u0434\u0430\u043d\u043d\u0443\u044e \u0442\u0435\u043c\u0443). <\/p>\n<p>\u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0431\u044b\u043b \u0432\u0437\u044f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 (\u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0431\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0430\u0436\u0435 \u043d\u0435 \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u0442 \u0447\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435):<\/p>\n<pre><code class=\"php\"> &lt;?php  $primeNumberCount = isset($argv[1]) ? $argv[1] : 100;  $number = 0; while ($primeNumberCount &gt; 0) {     $number++;     $j = 0;      for ($i = 1; $i &lt;= $number; $i++) {         if ($number % $i === 0) {             $j++;         }     }      if ($j === 2) {         $primeNumberCount--;     } }  echo 'The latest prime number: ' . $number . PHP_EOL;<\/code><\/pre>\n<p>\u0410 \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u0441\u0435 \u043a\u0430\u043a \u0432 \u0442\u0443\u043c\u0430\u043d\u0435: Python, C\/C++, Pascal, Go \u0438 \u0442\u0434. \u0412\u0441\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0433\u043b\u044f\u043d\u0443\u0442\u044c <a href=\"https:\/\/github.com\/mamchyts\/benchmark\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u0412\u0441\u0435 \u0442\u0435\u0441\u0442\u044b \u044f \u0434\u0435\u043b\u0430\u043b \u0432 \u0434\u043e\u043a\u0435\u0440\u0435, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0437\u0430\u0441\u043e\u0440\u044f\u0442\u044c \u043a\u043e\u043c\u043f.<\/p>\n<p>\u041f\u043e\u0442\u043e\u043c \u044f \u043d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 <a href=\"http:\/\/stolyarov.info\/books\/programming_intro\" rel=\"noopener noreferrer nofollow\">\u043a\u043d\u0438\u0433\u0438<\/a> <strong>\u0410\u043d\u0434\u0440\u0435\u044f \u0412\u0438\u043a\u0442\u043e\u0440\u043e\u0432\u0438\u0447\u0430 \u0421\u0442\u043e\u043b\u044f\u0440\u043e\u0432\u0430<\/strong>, \u0438 \u0432\u0441\u0435 \u0437\u0430\u0432\u0435\u0440\u0442\u0435\u043b\u043e\u0441\u044c \u0441 \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0441\u0438\u043b\u043e\u0439. <strong>Assembler<\/strong> \u044f \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u043b \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d \u0443\u043d\u0438\u0432\u0435\u0440\u0430, \u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u044f \u043a\u043d\u0438\u0433\u0438 \u043e\u0447\u0435\u043d\u044c \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c. \u041c\u043e\u0433\u0443 \u0441\u0440\u0430\u0437\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0442\u0435\u0441\u0442 \u0434\u043b\u044f Assembler\/NASM \u044f \u043f\u0438\u0441\u0430\u043b \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435\u0434\u0435\u043b\u0438, \u0445\u043e\u0442\u044f \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u042f\u041f \u0438\u0437 \u0442\u0435\u0445 \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0443\u0445\u043e\u0434\u0438\u043b\u043e \u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0430\u0441\u0430.<\/p>\n<p>\u0412\u043e\u0442 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/77e\/5c8\/88f\/77e5c888fe46d115b4271825620bda9a.png\" width=\"1800\" height=\"1400\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043d\u0430\u0447\u0430\u043b\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b, \u044f \u0443\u0434\u0438\u0432\u043b\u044f\u043b\u0441\u044f \u0432\u0441\u0435 \u0441\u0438\u043b\u044c\u043d\u0435\u0435 \u0438 \u0441\u0438\u043b\u044c\u043d\u0435\u0435:<\/p>\n<ul>\n<li>\n<p>\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f PHP \u0431\u044b\u0441\u0442\u0440\u0435\u0435 Python \u0438 Ruby<\/p>\n<\/li>\n<li>\n<p>PHP \u0432\u043e\u043e\u0431\u0449\u0435 \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>Python 3 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 Python 2<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u0440\u0430\u0431\u043e\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0439 \u043d\u0430 \u0421\/C++ \u0438 Assembler\/NASM \u0432 \u0440\u0430\u0439\u043e\u043d\u0435 15%<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0441\u043b\u0435 Rust \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u0435\u0441\u0442\u044b \u0441 \u0444\u043b\u0430\u0433\u043e\u043c \u043d\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044e \u0441 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0435\u0439<\/p>\n<\/li>\n<li>\n<p>\u043e\u0447\u0435\u043d\u044c \u0443\u0434\u0438\u0432\u0438\u043b \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0442\u0435\u0441\u0442\u0430 Node.js\/Javascript (\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 V8 &#8212; \u043a\u0440\u0430\u0441\u0430\u0432\u0446\u044b)<\/p>\n<\/li>\n<li>\n<p>\u0438 \u0442\u0434<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u044f \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0442\u0435\u0441\u0442\u044b (\u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0440\u0435\u043c\u044f \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435). <\/p>\n<p>\u0426\u0435\u043b\u044c \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441\u0442\u043e\u0438\u0442 \u043d\u0435 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a\u043e\u0439 \u042f\u041f \u0441\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439, \u0430 \u0432 \u0442\u043e\u043c \u0447\u0442\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0448\u0438\u0431\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u0432\u043e\u0438\u0445 \u0443\u0431\u0435\u0436\u0434\u0435\u043d\u0438\u044f, \u0438 \u0447\u0442\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0432\u0435\u0440\u0438\u0442\u044c \u0432\u0441\u0435\u043c \u0431\u0430\u0439\u043a\u0430\u043c \u0432 \u043a\u0443\u0440\u0438\u043b\u043a\u0435 (\u043c\u043d\u043e\u0433\u0438\u0435 \u0438\u0437 \u043c\u043e\u0438\u0445 \u0437\u0430\u0431\u043b\u0443\u0436\u0434\u0435\u043d\u0438\u0439 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u0442 \u0442\u0443\u0434\u0430, \u043a\u0442\u043e-\u0442\u043e \u0433\u0434\u0435-\u0442\u043e \u0441\u043b\u044b\u0448\u0430\u043b \u0447\u0442\u043e X \u0431\u044b\u0441\u0442\u0440\u0435\u0435 Y).<\/p>\n<p>P.S.:<a href=\"https:\/\/github.com\/mamchyts\/benchmark\" rel=\"noopener noreferrer nofollow\"> \u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0437\u0434\u0435\u0441\u044c<\/a><\/p>\n<p>PPS. \u0414\u043e\u0431\u0430\u0432\u0438\u043b <strong>Ruby 3<\/strong>, \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u043c\u043e\u0433\u043b\u043e&#8230;<\/p>\n<\/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=\"https:\/\/habr.com\/ru\/post\/563078\/\"> https:\/\/habr.com\/ru\/post\/563078\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>&#171;\u0411\u0435\u043d\u0447&#187; \u0434\u0435\u043b\u043e \u0442\u0430\u043a\u043e\u0435&#8230; \u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0434\u043d\u0435\u0439 \u0431\u0435\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043b\u043e\u043c\u043a\u0430, \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0437\u0430\u043d\u044f\u0442\u044c \u0441\u0435\u0431\u044f \u0447\u0435\u043c-\u043d\u0438\u0431\u0443\u0434\u044c. \u0418\u043d\u043e\u0433\u0434\u0430 \u044f \u043e\u0442\u0432\u043b\u0435\u043a\u0430\u043b\u0441\u044f \u043d\u0430 pet-\u043f\u0440\u043e\u0435\u043a\u0442\u044b, \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435 \u043b\u0438\u0442\u0435\u0440\u0430\u0442\u044b\u0440\u044b&#8230; \u0421\u0435\u0439\u0447\u0430\u0441 \u0436\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0442\u043e\u043c \u0447\u0442\u043e \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e &#171;\u0440\u0435\u0436\u0438\u043c\u0430 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f&#187;.<\/p>\n<p>\u041c\u0435\u043d\u044f \u043c\u043d\u043e\u0433\u0438\u0435 \u0433\u043e\u0434\u044b \u0432\u043e\u043b\u043d\u043e\u0432\u0430\u043b\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u042f\u041f (\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b <strong>PHP<\/strong>). \u0421\u043f\u0438\u0441\u043e\u043a \u043d\u0438\u0436\u0435, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0438 \u0443\u0431\u0435\u0436\u0434\u0435\u043d\u0438\u044f, \u0434\u043e \u043d\u0435\u0434\u0430\u0432\u043d\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438:<\/p>\n<ul>\n<li>\n<p>PHP \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>Python \u0431\u044b\u0441\u0442\u0440\u0435\u0435 PHP<\/p>\n<\/li>\n<li>\n<p>Ruby \u0431\u044b\u0441\u0442\u0440\u0435\u0435 PHP<\/p>\n<\/li>\n<li>\n<p>C\/C++ \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 Python \u0438 PHP \u0432\u043c\u0435\u0441\u0442\u0435 \u0432\u0437\u044f\u0442\u044b\u0445<\/p>\n<\/li>\n<li>\n<p>Assembler \u043d\u0430 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0431\u044b\u0441\u0442\u0440\u0435\u0435 C\/C++<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043a\u0430\u043a\u043e\u0439 \u0442\u0435\u0441\u0442 \u0432\u0437\u044f\u0442\u044c \u0437\u0430 \u043e\u0441\u043d\u043e\u0432\u0443. \u0410 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%9F%D1%80%D0%BE%D1%81%D1%82%D0%BE%D0%B5_%D1%87%D0%B8%D1%81%D0%BB%D0%BE\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0447\u0438\u0441\u0435\u043b<\/a> (\u044f \u0432 \u043a\u0443\u0440\u0441\u0435 \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, <a href=\"https:\/\/habr.com\/ru\/post\/468833\/\" rel=\"noopener noreferrer nofollow\">\u043d\u0435\u043f\u043b\u043e\u0445\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f <\/a>\u043d\u0430 \u0434\u0430\u043d\u043d\u0443\u044e \u0442\u0435\u043c\u0443). <\/p>\n<p>\u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0431\u044b\u043b \u0432\u0437\u044f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 (\u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0431\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0430\u0436\u0435 \u043d\u0435 \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u0442 \u0447\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435):<\/p>\n<pre><code class=\"php\"> &lt;?php  $primeNumberCount = isset($argv[1]) ? $argv[1] : 100;  $number = 0; while ($primeNumberCount &gt; 0) {     $number++;     $j = 0;      for ($i = 1; $i &lt;= $number; $i++) {         if ($number % $i === 0) {             $j++;         }     }      if ($j === 2) {         $primeNumberCount--;     } }  echo 'The latest prime number: ' . $number . PHP_EOL;<\/code><\/pre>\n<p>\u0410 \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u0441\u0435 \u043a\u0430\u043a \u0432 \u0442\u0443\u043c\u0430\u043d\u0435: Python, C\/C++, Pascal, Go \u0438 \u0442\u0434. \u0412\u0441\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0433\u043b\u044f\u043d\u0443\u0442\u044c <a href=\"https:\/\/github.com\/mamchyts\/benchmark\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u0412\u0441\u0435 \u0442\u0435\u0441\u0442\u044b \u044f \u0434\u0435\u043b\u0430\u043b \u0432 \u0434\u043e\u043a\u0435\u0440\u0435, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0437\u0430\u0441\u043e\u0440\u044f\u0442\u044c \u043a\u043e\u043c\u043f.<\/p>\n<p>\u041f\u043e\u0442\u043e\u043c \u044f \u043d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 <a href=\"http:\/\/stolyarov.info\/books\/programming_intro\" rel=\"noopener noreferrer nofollow\">\u043a\u043d\u0438\u0433\u0438<\/a> <strong>\u0410\u043d\u0434\u0440\u0435\u044f \u0412\u0438\u043a\u0442\u043e\u0440\u043e\u0432\u0438\u0447\u0430 \u0421\u0442\u043e\u043b\u044f\u0440\u043e\u0432\u0430<\/strong>, \u0438 \u0432\u0441\u0435 \u0437\u0430\u0432\u0435\u0440\u0442\u0435\u043b\u043e\u0441\u044c \u0441 \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0441\u0438\u043b\u043e\u0439. <strong>Assembler<\/strong> \u044f \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u043b \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d \u0443\u043d\u0438\u0432\u0435\u0440\u0430, \u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u044f \u043a\u043d\u0438\u0433\u0438 \u043e\u0447\u0435\u043d\u044c \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c. \u041c\u043e\u0433\u0443 \u0441\u0440\u0430\u0437\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0442\u0435\u0441\u0442 \u0434\u043b\u044f Assembler\/NASM \u044f \u043f\u0438\u0441\u0430\u043b \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435\u0434\u0435\u043b\u0438, \u0445\u043e\u0442\u044f \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u042f\u041f \u0438\u0437 \u0442\u0435\u0445 \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0443\u0445\u043e\u0434\u0438\u043b\u043e \u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0430\u0441\u0430.<\/p>\n<p>\u0412\u043e\u0442 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043d\u0430\u0447\u0430\u043b\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b, \u044f \u0443\u0434\u0438\u0432\u043b\u044f\u043b\u0441\u044f \u0432\u0441\u0435 \u0441\u0438\u043b\u044c\u043d\u0435\u0435 \u0438 \u0441\u0438\u043b\u044c\u043d\u0435\u0435:<\/p>\n<ul>\n<li>\n<p>\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f PHP \u0431\u044b\u0441\u0442\u0440\u0435\u0435 Python \u0438 Ruby<\/p>\n<\/li>\n<li>\n<p>PHP \u0432\u043e\u043e\u0431\u0449\u0435 \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>Python 3 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 Python 2<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u0440\u0430\u0431\u043e\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0439 \u043d\u0430 \u0421\/C++ \u0438 Assembler\/NASM \u0432 \u0440\u0430\u0439\u043e\u043d\u0435 15%<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0441\u043b\u0435 Rust \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u0435\u0441\u0442\u044b \u0441 \u0444\u043b\u0430\u0433\u043e\u043c \u043d\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044e \u0441 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0435\u0439<\/p>\n<\/li>\n<li>\n<p>\u043e\u0447\u0435\u043d\u044c \u0443\u0434\u0438\u0432\u0438\u043b \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0442\u0435\u0441\u0442\u0430 Node.js\/Javascript (\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 V8 &#8212; \u043a\u0440\u0430\u0441\u0430\u0432\u0446\u044b)<\/p>\n<\/li>\n<li>\n<p>\u0438 \u0442\u0434<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u044f \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0442\u0435\u0441\u0442\u044b (\u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0440\u0435\u043c\u044f \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435). <\/p>\n<p>\u0426\u0435\u043b\u044c \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441\u0442\u043e\u0438\u0442 \u043d\u0435 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a\u043e\u0439 \u042f\u041f \u0441\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439, \u0430 \u0432 \u0442\u043e\u043c \u0447\u0442\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0448\u0438\u0431\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u0432\u043e\u0438\u0445 \u0443\u0431\u0435\u0436\u0434\u0435\u043d\u0438\u044f, \u0438 \u0447\u0442\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0432\u0435\u0440\u0438\u0442\u044c \u0432\u0441\u0435\u043c \u0431\u0430\u0439\u043a\u0430\u043c \u0432 \u043a\u0443\u0440\u0438\u043b\u043a\u0435 (\u043c\u043d\u043e\u0433\u0438\u0435 \u0438\u0437 \u043c\u043e\u0438\u0445 \u0437\u0430\u0431\u043b\u0443\u0436\u0434\u0435\u043d\u0438\u0439 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u0442 \u0442\u0443\u0434\u0430, \u043a\u0442\u043e-\u0442\u043e \u0433\u0434\u0435-\u0442\u043e \u0441\u043b\u044b\u0448\u0430\u043b \u0447\u0442\u043e X \u0431\u044b\u0441\u0442\u0440\u0435\u0435 Y).<\/p>\n<p>P.S.:<a href=\"https:\/\/github.com\/mamchyts\/benchmark\" rel=\"noopener noreferrer nofollow\"> \u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0437\u0434\u0435\u0441\u044c<\/a><\/p>\n<p>PPS. \u0414\u043e\u0431\u0430\u0432\u0438\u043b <strong>Ruby 3<\/strong>, \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u043c\u043e\u0433\u043b\u043e&#8230;<\/p>\n<\/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=\"https:\/\/habr.com\/ru\/post\/563078\/\"> https:\/\/habr.com\/ru\/post\/563078\/<\/a><br \/><\/br><\/br><\/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-325002","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/325002","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=325002"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/325002\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=325002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=325002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=325002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}