{"action":"created","comment":{"url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/pulls/comments/313034958","pull_request_review_id":273833776,"id":313034958,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxMzAzNDk1OA==","diff_hunk":"@@ -19,7 +19,16 @@\n  * @return {boolean}\n  */\n function isWilsonPrime(num) {\n-  // write code here\n+  function factorial(checkedNumber) {\n+    let i = 1;\n+    let sum = 1;\n+    while (i <= checkedNumber) {\n+      sum *= i;\n+      i++;\n+    }\n+    return sum;\n+  }\n+  return Number.isInteger((factorial(num - 1) + 1) / (num * num));","path":"src/isWilsonPrime.js","position":14,"original_position":14,"commit_id":"243d9e8ece2731a67b73234ddcffae5e5c45a627","original_commit_id":"243d9e8ece2731a67b73234ddcffae5e5c45a627","user":{"login":"danheim","id":36257947,"node_id":"MDQ6VXNlcjM2MjU3OTQ3","avatar_url":"https://avatars1.githubusercontent.com/u/36257947?v=4","gravatar_id":"","url":"https://api.github.com/users/danheim","html_url":"https://github.com/danheim","followers_url":"https://api.github.com/users/danheim/followers","following_url":"https://api.github.com/users/danheim/following{/other_user}","gists_url":"https://api.github.com/users/danheim/gists{/gist_id}","starred_url":"https://api.github.com/users/danheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danheim/subscriptions","organizations_url":"https://api.github.com/users/danheim/orgs","repos_url":"https://api.github.com/users/danheim/repos","events_url":"https://api.github.com/users/danheim/events{/privacy}","received_events_url":"https://api.github.com/users/danheim/received_events","type":"User","site_admin":false},"body":"отступ перед возвратом","created_at":"2019-08-12T17:19:50Z","updated_at":"2019-08-12T17:19:53Z","html_url":"https://github.com/mate-academy/js_task-wilson-primes/pull/19#discussion_r313034958","pull_request_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/pulls/19","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/pulls/comments/313034958"},"html":{"href":"https://github.com/mate-academy/js_task-wilson-primes/pull/19#discussion_r313034958"},"pull_request":{"href":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/pulls/19","id":306557497,"node_id":"MDExOlB1bGxSZXF1ZXN0MzA2NTU3NDk3","html_url":"https://github.com/mate-academy/js_task-wilson-primes/pull/19","diff_url":"https://github.com/mate-academy/js_task-wilson-primes/pull/19.diff","patch_url":"https://github.com/mate-academy/js_task-wilson-primes/pull/19.patch","issue_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/issues/19","number":19,"state":"open","locked":false,"title":"solution","user":{"login":"Voronok16","id":52920431,"node_id":"MDQ6VXNlcjUyOTIwNDMx","avatar_url":"https://avatars0.githubusercontent.com/u/52920431?v=4","gravatar_id":"","url":"https://api.github.com/users/Voronok16","html_url":"https://github.com/Voronok16","followers_url":"https://api.github.com/users/Voronok16/followers","following_url":"https://api.github.com/users/Voronok16/following{/other_user}","gists_url":"https://api.github.com/users/Voronok16/gists{/gist_id}","starred_url":"https://api.github.com/users/Voronok16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Voronok16/subscriptions","organizations_url":"https://api.github.com/users/Voronok16/orgs","repos_url":"https://api.github.com/users/Voronok16/repos","events_url":"https://api.github.com/users/Voronok16/events{/privacy}","received_events_url":"https://api.github.com/users/Voronok16/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-08-12T15:52:59Z","updated_at":"2019-08-12T17:19:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72d1ce01259a28c75a595dc87c26b6c6892a98fa","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/pulls/19/commits","review_comments_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/pulls/19/comments","review_comment_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/issues/19/comments","statuses_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/statuses/243d9e8ece2731a67b73234ddcffae5e5c45a627","head":{"label":"Voronok16:fs_jul_19_Fomenko","ref":"fs_jul_19_Fomenko","sha":"243d9e8ece2731a67b73234ddcffae5e5c45a627","user":{"login":"Voronok16","id":52920431,"node_id":"MDQ6VXNlcjUyOTIwNDMx","avatar_url":"https://avatars0.githubusercontent.com/u/52920431?v=4","gravatar_id":"","url":"https://api.github.com/users/Voronok16","html_url":"https://github.com/Voronok16","followers_url":"https://api.github.com/users/Voronok16/followers","following_url":"https://api.github.com/users/Voronok16/following{/other_user}","gists_url":"https://api.github.com/users/Voronok16/gists{/gist_id}","starred_url":"https://api.github.com/users/Voronok16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Voronok16/subscriptions","organizations_url":"https://api.github.com/users/Voronok16/orgs","repos_url":"https://api.github.com/users/Voronok16/repos","events_url":"https://api.github.com/users/Voronok16/events{/privacy}","received_events_url":"https://api.github.com/users/Voronok16/received_events","type":"User","site_admin":false},"repo":{"id":201942114,"node_id":"MDEwOlJlcG9zaXRvcnkyMDE5NDIxMTQ=","name":"js_task-wilson-primes","full_name":"Voronok16/js_task-wilson-primes","private":false,"owner":{"login":"Voronok16","id":52920431,"node_id":"MDQ6VXNlcjUyOTIwNDMx","avatar_url":"https://avatars0.githubusercontent.com/u/52920431?v=4","gravatar_id":"","url":"https://api.github.com/users/Voronok16","html_url":"https://github.com/Voronok16","followers_url":"https://api.github.com/users/Voronok16/followers","following_url":"https://api.github.com/users/Voronok16/following{/other_user}","gists_url":"https://api.github.com/users/Voronok16/gists{/gist_id}","starred_url":"https://api.github.com/users/Voronok16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Voronok16/subscriptions","organizations_url":"https://api.github.com/users/Voronok16/orgs","repos_url":"https://api.github.com/users/Voronok16/repos","events_url":"https://api.github.com/users/Voronok16/events{/privacy}","received_events_url":"https://api.github.com/users/Voronok16/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Voronok16/js_task-wilson-primes","description":null,"fork":true,"url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes","forks_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/forks","keys_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/teams","hooks_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/hooks","issue_events_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/issues/events{/number}","events_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/events","assignees_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/assignees{/user}","branches_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/branches{/branch}","tags_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/tags","blobs_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/git/refs{/sha}","trees_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/statuses/{sha}","languages_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/languages","stargazers_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/stargazers","contributors_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/contributors","subscribers_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/subscribers","subscription_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/subscription","commits_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/commits{/sha}","git_commits_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/git/commits{/sha}","comments_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/comments{/number}","issue_comment_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/issues/comments{/number}","contents_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/contents/{+path}","compare_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/merges","archive_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/downloads","issues_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/issues{/number}","pulls_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/pulls{/number}","milestones_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/milestones{/number}","notifications_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/labels{/name}","releases_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/releases{/id}","deployments_url":"https://api.github.com/repos/Voronok16/js_task-wilson-primes/deployments","created_at":"2019-08-12T14:03:34Z","updated_at":"2019-08-12T14:03:37Z","pushed_at":"2019-08-12T16:57:08Z","git_url":"git://github.com/Voronok16/js_task-wilson-primes.git","ssh_url":"git@github.com:Voronok16/js_task-wilson-primes.git","clone_url":"https://github.com/Voronok16/js_task-wilson-primes.git","svn_url":"https://github.com/Voronok16/js_task-wilson-primes","homepage":null,"size":19,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mate-academy:master","ref":"master","sha":"bc251b11bc299a9c527bb8ed22374f2483584b18","user":{"login":"mate-academy","id":28379899,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4Mzc5ODk5","avatar_url":"https://avatars1.githubusercontent.com/u/28379899?v=4","gravatar_id":"","url":"https://api.github.com/users/mate-academy","html_url":"https://github.com/mate-academy","followers_url":"https://api.github.com/users/mate-academy/followers","following_url":"https://api.github.com/users/mate-academy/following{/other_user}","gists_url":"https://api.github.com/users/mate-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/mate-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mate-academy/subscriptions","organizations_url":"https://api.github.com/users/mate-academy/orgs","repos_url":"https://api.github.com/users/mate-academy/repos","events_url":"https://api.github.com/users/mate-academy/events{/privacy}","received_events_url":"https://api.github.com/users/mate-academy/received_events","type":"Organization","site_admin":false},"repo":{"id":191564899,"node_id":"MDEwOlJlcG9zaXRvcnkxOTE1NjQ4OTk=","name":"js_task-wilson-primes","full_name":"mate-academy/js_task-wilson-primes","private":false,"owner":{"login":"mate-academy","id":28379899,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4Mzc5ODk5","avatar_url":"https://avatars1.githubusercontent.com/u/28379899?v=4","gravatar_id":"","url":"https://api.github.com/users/mate-academy","html_url":"https://github.com/mate-academy","followers_url":"https://api.github.com/users/mate-academy/followers","following_url":"https://api.github.com/users/mate-academy/following{/other_user}","gists_url":"https://api.github.com/users/mate-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/mate-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mate-academy/subscriptions","organizations_url":"https://api.github.com/users/mate-academy/orgs","repos_url":"https://api.github.com/users/mate-academy/repos","events_url":"https://api.github.com/users/mate-academy/events{/privacy}","received_events_url":"https://api.github.com/users/mate-academy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/mate-academy/js_task-wilson-primes","description":null,"fork":false,"url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes","forks_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/forks","keys_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/teams","hooks_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/hooks","issue_events_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/issues/events{/number}","events_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/events","assignees_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/assignees{/user}","branches_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/branches{/branch}","tags_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/tags","blobs_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/git/refs{/sha}","trees_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/statuses/{sha}","languages_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/languages","stargazers_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/stargazers","contributors_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/contributors","subscribers_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/subscribers","subscription_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/subscription","commits_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/commits{/sha}","git_commits_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/git/commits{/sha}","comments_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/comments{/number}","issue_comment_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/issues/comments{/number}","contents_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/contents/{+path}","compare_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/merges","archive_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/downloads","issues_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/issues{/number}","pulls_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/pulls{/number}","milestones_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/milestones{/number}","notifications_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/labels{/name}","releases_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/releases{/id}","deployments_url":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/deployments","created_at":"2019-06-12T12:16:36Z","updated_at":"2019-06-13T14:56:56Z","pushed_at":"2019-08-12T17:13:14Z","git_url":"git://github.com/mate-academy/js_task-wilson-primes.git","ssh_url":"git@github.com:mate-academy/js_task-wilson-primes.git","clone_url":"https://github.com/mate-academy/js_task-wilson-primes.git","svn_url":"https://github.com/mate-academy/js_task-wilson-primes","homepage":null,"size":19,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":20,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":30,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/pulls/19"},"html":{"href":"https://github.com/mate-academy/js_task-wilson-primes/pull/19"},"issue":{"href":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/issues/19"},"comments":{"href":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/mate-academy/js_task-wilson-primes/statuses/243d9e8ece2731a67b73234ddcffae5e5c45a627"}},"author_association":"NONE"}}
{"actor":{"display_login":"danheim"}}