{"action":"opened","issue":{"url":"https://api.github.com/repos/gordenia/OOP/issues/5","repository_url":"https://api.github.com/repos/gordenia/OOP","labels_url":"https://api.github.com/repos/gordenia/OOP/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/gordenia/OOP/issues/5/comments","events_url":"https://api.github.com/repos/gordenia/OOP/issues/5/events","html_url":"https://github.com/gordenia/OOP/issues/5","id":314225202,"number":5,"title":"Замечания по генератору простых чисел","user":{"login":"alexey-malov","id":6040682,"avatar_url":"https://avatars3.githubusercontent.com/u/6040682?v=4","gravatar_id":"","url":"https://api.github.com/users/alexey-malov","html_url":"https://github.com/alexey-malov","followers_url":"https://api.github.com/users/alexey-malov/followers","following_url":"https://api.github.com/users/alexey-malov/following{/other_user}","gists_url":"https://api.github.com/users/alexey-malov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexey-malov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexey-malov/subscriptions","organizations_url":"https://api.github.com/users/alexey-malov/orgs","repos_url":"https://api.github.com/users/alexey-malov/repos","events_url":"https://api.github.com/users/alexey-malov/events{/privacy}","received_events_url":"https://api.github.com/users/alexey-malov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-13T19:30:16Z","updated_at":"2018-04-13T19:30:16Z","closed_at":null,"author_association":"NONE","body":"```c++\r\nvoid UseSieveErythosthene(std::vector<bool> &numbers)\r\n{\r\n\tfor (size_t i = 2; i * i <= numbers.size(); ++i)\r\n\t{\r\n\t\tif (numbers[i])\r\n\t\t{\r\n\t\t\tfor (size_t j = i * i; j <= numbers.size(); j += i)\r\n\t\t\t{\r\n\t\t\t\tnumbers[j] = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t}\r\n}\r\n```\r\n- [ ] numbers -> isPrime\r\n- [ ] Внутренний цикл выделить в функцию `void ExcludeMultiplesOf(size_t x, vector<bool>& isPrime)`:\r\n```c++\r\nif (isPrime[i])\r\n{\r\n    ExcludeMultiplesOf(i, isPrime);\r\n}\r\n```"}}
{"actor":{"display_login":"alexey-malov"}}