{"action":"created","comment":{"url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments/171808065","pull_request_review_id":100726611,"id":171808065,"diff_hunk":"@@ -0,0 +1,13 @@\n+let num = 600851475143;\n+let highestPrimeFactor = 0;\n+let currentFactor = 2;\n+\n+while (num !== 1) {\n+  if (num % currentFactor === 0 && currentFactor > highestPrimeFactor) {\n+    highestPrimeFactor = currentFactor;","path":"code/online_challenges/src/project_euler/problem_003/problem_003.js","position":7,"original_position":7,"commit_id":"e80ef973fcd154770c3c76ac6caf6e27da77269a","original_commit_id":"e80ef973fcd154770c3c76ac6caf6e27da77269a","user":{"login":"abdouskamel","id":32772484,"avatar_url":"https://avatars2.githubusercontent.com/u/32772484?v=4","gravatar_id":"","url":"https://api.github.com/users/abdouskamel","html_url":"https://github.com/abdouskamel","followers_url":"https://api.github.com/users/abdouskamel/followers","following_url":"https://api.github.com/users/abdouskamel/following{/other_user}","gists_url":"https://api.github.com/users/abdouskamel/gists{/gist_id}","starred_url":"https://api.github.com/users/abdouskamel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abdouskamel/subscriptions","organizations_url":"https://api.github.com/users/abdouskamel/orgs","repos_url":"https://api.github.com/users/abdouskamel/repos","events_url":"https://api.github.com/users/abdouskamel/events{/privacy}","received_events_url":"https://api.github.com/users/abdouskamel/received_events","type":"User","site_admin":false},"body":"currentFactor could be not a prime, for example for num = 8, in the last iteration we get currentFactor = 4.","created_at":"2018-03-02T10:10:19Z","updated_at":"2018-03-02T10:10:25Z","html_url":"https://github.com/OpenGenus/cosmos/pull/3343#discussion_r171808065","pull_request_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3343","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments/171808065"},"html":{"href":"https://github.com/OpenGenus/cosmos/pull/3343#discussion_r171808065"},"pull_request":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3343"}}},"pull_request":{"url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3343","id":172226243,"html_url":"https://github.com/OpenGenus/cosmos/pull/3343","diff_url":"https://github.com/OpenGenus/cosmos/pull/3343.diff","patch_url":"https://github.com/OpenGenus/cosmos/pull/3343.patch","issue_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/3343","number":3343,"state":"open","locked":false,"title":"Added Project Euler Problem #3 in JS","user":{"login":"arnavb","id":30810402,"avatar_url":"https://avatars0.githubusercontent.com/u/30810402?v=4","gravatar_id":"","url":"https://api.github.com/users/arnavb","html_url":"https://github.com/arnavb","followers_url":"https://api.github.com/users/arnavb/followers","following_url":"https://api.github.com/users/arnavb/following{/other_user}","gists_url":"https://api.github.com/users/arnavb/gists{/gist_id}","starred_url":"https://api.github.com/users/arnavb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnavb/subscriptions","organizations_url":"https://api.github.com/users/arnavb/orgs","repos_url":"https://api.github.com/users/arnavb/repos","events_url":"https://api.github.com/users/arnavb/events{/privacy}","received_events_url":"https://api.github.com/users/arnavb/received_events","type":"User","site_admin":false},"body":"**Fixes issue:** N/A\r\n\r\n\r\n**Changes:**\r\n- Added Project Euler problem #3 in JS.","created_at":"2018-03-01T12:42:55Z","updated_at":"2018-03-02T10:10:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ffb972f10ede817eb54b62f2b0580994a370edb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3343/commits","review_comments_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3343/comments","review_comment_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/3343/comments","statuses_url":"https://api.github.com/repos/OpenGenus/cosmos/statuses/e80ef973fcd154770c3c76ac6caf6e27da77269a","head":{"label":"arnavb:problem-003-js","ref":"problem-003-js","sha":"e80ef973fcd154770c3c76ac6caf6e27da77269a","user":{"login":"arnavb","id":30810402,"avatar_url":"https://avatars0.githubusercontent.com/u/30810402?v=4","gravatar_id":"","url":"https://api.github.com/users/arnavb","html_url":"https://github.com/arnavb","followers_url":"https://api.github.com/users/arnavb/followers","following_url":"https://api.github.com/users/arnavb/following{/other_user}","gists_url":"https://api.github.com/users/arnavb/gists{/gist_id}","starred_url":"https://api.github.com/users/arnavb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnavb/subscriptions","organizations_url":"https://api.github.com/users/arnavb/orgs","repos_url":"https://api.github.com/users/arnavb/repos","events_url":"https://api.github.com/users/arnavb/events{/privacy}","received_events_url":"https://api.github.com/users/arnavb/received_events","type":"User","site_admin":false},"repo":{"id":106001304,"name":"cosmos","full_name":"arnavb/cosmos","owner":{"login":"arnavb","id":30810402,"avatar_url":"https://avatars0.githubusercontent.com/u/30810402?v=4","gravatar_id":"","url":"https://api.github.com/users/arnavb","html_url":"https://github.com/arnavb","followers_url":"https://api.github.com/users/arnavb/followers","following_url":"https://api.github.com/users/arnavb/following{/other_user}","gists_url":"https://api.github.com/users/arnavb/gists{/gist_id}","starred_url":"https://api.github.com/users/arnavb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnavb/subscriptions","organizations_url":"https://api.github.com/users/arnavb/orgs","repos_url":"https://api.github.com/users/arnavb/repos","events_url":"https://api.github.com/users/arnavb/events{/privacy}","received_events_url":"https://api.github.com/users/arnavb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arnavb/cosmos","description":" [Show :heart: love by 🌟] Your personal library of every algorithm and data structure code that you will ever encounter","fork":true,"url":"https://api.github.com/repos/arnavb/cosmos","forks_url":"https://api.github.com/repos/arnavb/cosmos/forks","keys_url":"https://api.github.com/repos/arnavb/cosmos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arnavb/cosmos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arnavb/cosmos/teams","hooks_url":"https://api.github.com/repos/arnavb/cosmos/hooks","issue_events_url":"https://api.github.com/repos/arnavb/cosmos/issues/events{/number}","events_url":"https://api.github.com/repos/arnavb/cosmos/events","assignees_url":"https://api.github.com/repos/arnavb/cosmos/assignees{/user}","branches_url":"https://api.github.com/repos/arnavb/cosmos/branches{/branch}","tags_url":"https://api.github.com/repos/arnavb/cosmos/tags","blobs_url":"https://api.github.com/repos/arnavb/cosmos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arnavb/cosmos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arnavb/cosmos/git/refs{/sha}","trees_url":"https://api.github.com/repos/arnavb/cosmos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arnavb/cosmos/statuses/{sha}","languages_url":"https://api.github.com/repos/arnavb/cosmos/languages","stargazers_url":"https://api.github.com/repos/arnavb/cosmos/stargazers","contributors_url":"https://api.github.com/repos/arnavb/cosmos/contributors","subscribers_url":"https://api.github.com/repos/arnavb/cosmos/subscribers","subscription_url":"https://api.github.com/repos/arnavb/cosmos/subscription","commits_url":"https://api.github.com/repos/arnavb/cosmos/commits{/sha}","git_commits_url":"https://api.github.com/repos/arnavb/cosmos/git/commits{/sha}","comments_url":"https://api.github.com/repos/arnavb/cosmos/comments{/number}","issue_comment_url":"https://api.github.com/repos/arnavb/cosmos/issues/comments{/number}","contents_url":"https://api.github.com/repos/arnavb/cosmos/contents/{+path}","compare_url":"https://api.github.com/repos/arnavb/cosmos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arnavb/cosmos/merges","archive_url":"https://api.github.com/repos/arnavb/cosmos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arnavb/cosmos/downloads","issues_url":"https://api.github.com/repos/arnavb/cosmos/issues{/number}","pulls_url":"https://api.github.com/repos/arnavb/cosmos/pulls{/number}","milestones_url":"https://api.github.com/repos/arnavb/cosmos/milestones{/number}","notifications_url":"https://api.github.com/repos/arnavb/cosmos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arnavb/cosmos/labels{/name}","releases_url":"https://api.github.com/repos/arnavb/cosmos/releases{/id}","deployments_url":"https://api.github.com/repos/arnavb/cosmos/deployments","created_at":"2017-10-06T12:19:17Z","updated_at":"2017-10-06T12:19:19Z","pushed_at":"2018-03-01T12:42:11Z","git_url":"git://github.com/arnavb/cosmos.git","ssh_url":"git@github.com:arnavb/cosmos.git","clone_url":"https://github.com/arnavb/cosmos.git","svn_url":"https://github.com/arnavb/cosmos","homepage":"","size":12696,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OpenGenus:master","ref":"master","sha":"777035c5f3166227d20297d1030214b6cc869618","user":{"login":"OpenGenus","id":18506046,"avatar_url":"https://avatars3.githubusercontent.com/u/18506046?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenGenus","html_url":"https://github.com/OpenGenus","followers_url":"https://api.github.com/users/OpenGenus/followers","following_url":"https://api.github.com/users/OpenGenus/following{/other_user}","gists_url":"https://api.github.com/users/OpenGenus/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenGenus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenGenus/subscriptions","organizations_url":"https://api.github.com/users/OpenGenus/orgs","repos_url":"https://api.github.com/users/OpenGenus/repos","events_url":"https://api.github.com/users/OpenGenus/events{/privacy}","received_events_url":"https://api.github.com/users/OpenGenus/received_events","type":"Organization","site_admin":false},"repo":{"id":103749180,"name":"cosmos","full_name":"OpenGenus/cosmos","owner":{"login":"OpenGenus","id":18506046,"avatar_url":"https://avatars3.githubusercontent.com/u/18506046?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenGenus","html_url":"https://github.com/OpenGenus","followers_url":"https://api.github.com/users/OpenGenus/followers","following_url":"https://api.github.com/users/OpenGenus/following{/other_user}","gists_url":"https://api.github.com/users/OpenGenus/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenGenus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenGenus/subscriptions","organizations_url":"https://api.github.com/users/OpenGenus/orgs","repos_url":"https://api.github.com/users/OpenGenus/repos","events_url":"https://api.github.com/users/OpenGenus/events{/privacy}","received_events_url":"https://api.github.com/users/OpenGenus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenGenus/cosmos","description":"Algorithms that run our universe | Your personal library of every algorithm and data structure code that you will ever encounter","fork":false,"url":"https://api.github.com/repos/OpenGenus/cosmos","forks_url":"https://api.github.com/repos/OpenGenus/cosmos/forks","keys_url":"https://api.github.com/repos/OpenGenus/cosmos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenGenus/cosmos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenGenus/cosmos/teams","hooks_url":"https://api.github.com/repos/OpenGenus/cosmos/hooks","issue_events_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/events{/number}","events_url":"https://api.github.com/repos/OpenGenus/cosmos/events","assignees_url":"https://api.github.com/repos/OpenGenus/cosmos/assignees{/user}","branches_url":"https://api.github.com/repos/OpenGenus/cosmos/branches{/branch}","tags_url":"https://api.github.com/repos/OpenGenus/cosmos/tags","blobs_url":"https://api.github.com/repos/OpenGenus/cosmos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenGenus/cosmos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenGenus/cosmos/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenGenus/cosmos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenGenus/cosmos/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenGenus/cosmos/languages","stargazers_url":"https://api.github.com/repos/OpenGenus/cosmos/stargazers","contributors_url":"https://api.github.com/repos/OpenGenus/cosmos/contributors","subscribers_url":"https://api.github.com/repos/OpenGenus/cosmos/subscribers","subscription_url":"https://api.github.com/repos/OpenGenus/cosmos/subscription","commits_url":"https://api.github.com/repos/OpenGenus/cosmos/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenGenus/cosmos/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenGenus/cosmos/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenGenus/cosmos/contents/{+path}","compare_url":"https://api.github.com/repos/OpenGenus/cosmos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenGenus/cosmos/merges","archive_url":"https://api.github.com/repos/OpenGenus/cosmos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenGenus/cosmos/downloads","issues_url":"https://api.github.com/repos/OpenGenus/cosmos/issues{/number}","pulls_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenGenus/cosmos/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenGenus/cosmos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenGenus/cosmos/labels{/name}","releases_url":"https://api.github.com/repos/OpenGenus/cosmos/releases{/id}","deployments_url":"https://api.github.com/repos/OpenGenus/cosmos/deployments","created_at":"2017-09-16T12:07:05Z","updated_at":"2018-03-02T09:31:06Z","pushed_at":"2018-03-02T08:18:27Z","git_url":"git://github.com/OpenGenus/cosmos.git","ssh_url":"git@github.com:OpenGenus/cosmos.git","clone_url":"https://github.com/OpenGenus/cosmos.git","svn_url":"https://github.com/OpenGenus/cosmos","homepage":"https://discourse.opengenus.org","size":12701,"stargazers_count":6318,"watchers_count":6318,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1879,"mirror_url":null,"archived":false,"open_issues_count":949,"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"},"forks":1879,"open_issues":949,"watchers":6318,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3343"},"html":{"href":"https://github.com/OpenGenus/cosmos/pull/3343"},"issue":{"href":"https://api.github.com/repos/OpenGenus/cosmos/issues/3343"},"comments":{"href":"https://api.github.com/repos/OpenGenus/cosmos/issues/3343/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3343/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3343/commits"},"statuses":{"href":"https://api.github.com/repos/OpenGenus/cosmos/statuses/e80ef973fcd154770c3c76ac6caf6e27da77269a"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"abdouskamel"}}