{"action":"created","comment":{"url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/pulls/comments/71155580","id":71155580,"diff_hunk":"@@ -0,0 +1,22 @@\n+fn main() {\n+    let mut z = 1;\n+    let mut counter = 1;\n+    while z < 21 {\n+        if is_prime(counter) == true {\n+            println!(\"{}. Primzahl: {}\", z, counter);\n+            z = z + 1;\n+        } else {}\n+        counter = counter + 1;\n+    }\n+}\n+\n+fn is_prime(u: u32) -> bool {\n+    let mut prime = true;\n+\n+    for i in 2..u {\n+        if u % i == 0 {\n+            prime = false;","path":"primes.rs","position":18,"original_position":18,"commit_id":"0e571db86cedf42d08682345b5070151c017152d","original_commit_id":"0e571db86cedf42d08682345b5070151c017152d","user":{"login":"jonas-schievink","id":1786438,"avatar_url":"https://avatars.githubusercontent.com/u/1786438?v=3","gravatar_id":"","url":"https://api.github.com/users/jonas-schievink","html_url":"https://github.com/jonas-schievink","followers_url":"https://api.github.com/users/jonas-schievink/followers","following_url":"https://api.github.com/users/jonas-schievink/following{/other_user}","gists_url":"https://api.github.com/users/jonas-schievink/gists{/gist_id}","starred_url":"https://api.github.com/users/jonas-schievink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonas-schievink/subscriptions","organizations_url":"https://api.github.com/users/jonas-schievink/orgs","repos_url":"https://api.github.com/users/jonas-schievink/repos","events_url":"https://api.github.com/users/jonas-schievink/events{/privacy}","received_events_url":"https://api.github.com/users/jonas-schievink/received_events","type":"User","site_admin":false},"body":"`return false;` ist besser weil dann die Schleife früher beendet wird (ja, `return` gibt's noch)","created_at":"2016-07-18T14:22:21Z","updated_at":"2016-07-18T14:22:21Z","html_url":"https://github.com/LukasKalbertodt/cgp-learn/pull/61#discussion_r71155580","pull_request_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/pulls/comments/71155580"},"html":{"href":"https://github.com/LukasKalbertodt/cgp-learn/pull/61#discussion_r71155580"},"pull_request":{"href":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/pulls/61","id":77814471,"html_url":"https://github.com/LukasKalbertodt/cgp-learn/pull/61","diff_url":"https://github.com/LukasKalbertodt/cgp-learn/pull/61.diff","patch_url":"https://github.com/LukasKalbertodt/cgp-learn/pull/61.patch","issue_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/issues/61","number":61,"state":"open","locked":false,"title":"task2","user":{"login":"lepieper","id":20512971,"avatar_url":"https://avatars.githubusercontent.com/u/20512971?v=3","gravatar_id":"","url":"https://api.github.com/users/lepieper","html_url":"https://github.com/lepieper","followers_url":"https://api.github.com/users/lepieper/followers","following_url":"https://api.github.com/users/lepieper/following{/other_user}","gists_url":"https://api.github.com/users/lepieper/gists{/gist_id}","starred_url":"https://api.github.com/users/lepieper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lepieper/subscriptions","organizations_url":"https://api.github.com/users/lepieper/orgs","repos_url":"https://api.github.com/users/lepieper/repos","events_url":"https://api.github.com/users/lepieper/events{/privacy}","received_events_url":"https://api.github.com/users/lepieper/received_events","type":"User","site_admin":false},"body":"primes and collatz","created_at":"2016-07-18T14:11:43Z","updated_at":"2016-07-18T14:22:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4b88de982f0dc85df537dbe29982f64194f11c7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/pulls/61/commits","review_comments_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/pulls/61/comments","review_comment_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/issues/61/comments","statuses_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/statuses/0e571db86cedf42d08682345b5070151c017152d","head":{"label":"lepieper:master","ref":"master","sha":"0e571db86cedf42d08682345b5070151c017152d","user":{"login":"lepieper","id":20512971,"avatar_url":"https://avatars.githubusercontent.com/u/20512971?v=3","gravatar_id":"","url":"https://api.github.com/users/lepieper","html_url":"https://github.com/lepieper","followers_url":"https://api.github.com/users/lepieper/followers","following_url":"https://api.github.com/users/lepieper/following{/other_user}","gists_url":"https://api.github.com/users/lepieper/gists{/gist_id}","starred_url":"https://api.github.com/users/lepieper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lepieper/subscriptions","organizations_url":"https://api.github.com/users/lepieper/orgs","repos_url":"https://api.github.com/users/lepieper/repos","events_url":"https://api.github.com/users/lepieper/events{/privacy}","received_events_url":"https://api.github.com/users/lepieper/received_events","type":"User","site_admin":false},"repo":{"id":63585936,"name":"cgp-learn","full_name":"lepieper/cgp-learn","owner":{"login":"lepieper","id":20512971,"avatar_url":"https://avatars.githubusercontent.com/u/20512971?v=3","gravatar_id":"","url":"https://api.github.com/users/lepieper","html_url":"https://github.com/lepieper","followers_url":"https://api.github.com/users/lepieper/followers","following_url":"https://api.github.com/users/lepieper/following{/other_user}","gists_url":"https://api.github.com/users/lepieper/gists{/gist_id}","starred_url":"https://api.github.com/users/lepieper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lepieper/subscriptions","organizations_url":"https://api.github.com/users/lepieper/orgs","repos_url":"https://api.github.com/users/lepieper/repos","events_url":"https://api.github.com/users/lepieper/events{/privacy}","received_events_url":"https://api.github.com/users/lepieper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lepieper/cgp-learn","description":"Temporary test repository to learn working with Git and Rust (German!)","fork":true,"url":"https://api.github.com/repos/lepieper/cgp-learn","forks_url":"https://api.github.com/repos/lepieper/cgp-learn/forks","keys_url":"https://api.github.com/repos/lepieper/cgp-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lepieper/cgp-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lepieper/cgp-learn/teams","hooks_url":"https://api.github.com/repos/lepieper/cgp-learn/hooks","issue_events_url":"https://api.github.com/repos/lepieper/cgp-learn/issues/events{/number}","events_url":"https://api.github.com/repos/lepieper/cgp-learn/events","assignees_url":"https://api.github.com/repos/lepieper/cgp-learn/assignees{/user}","branches_url":"https://api.github.com/repos/lepieper/cgp-learn/branches{/branch}","tags_url":"https://api.github.com/repos/lepieper/cgp-learn/tags","blobs_url":"https://api.github.com/repos/lepieper/cgp-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lepieper/cgp-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lepieper/cgp-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/lepieper/cgp-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lepieper/cgp-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/lepieper/cgp-learn/languages","stargazers_url":"https://api.github.com/repos/lepieper/cgp-learn/stargazers","contributors_url":"https://api.github.com/repos/lepieper/cgp-learn/contributors","subscribers_url":"https://api.github.com/repos/lepieper/cgp-learn/subscribers","subscription_url":"https://api.github.com/repos/lepieper/cgp-learn/subscription","commits_url":"https://api.github.com/repos/lepieper/cgp-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/lepieper/cgp-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/lepieper/cgp-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/lepieper/cgp-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/lepieper/cgp-learn/contents/{+path}","compare_url":"https://api.github.com/repos/lepieper/cgp-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lepieper/cgp-learn/merges","archive_url":"https://api.github.com/repos/lepieper/cgp-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lepieper/cgp-learn/downloads","issues_url":"https://api.github.com/repos/lepieper/cgp-learn/issues{/number}","pulls_url":"https://api.github.com/repos/lepieper/cgp-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/lepieper/cgp-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/lepieper/cgp-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lepieper/cgp-learn/labels{/name}","releases_url":"https://api.github.com/repos/lepieper/cgp-learn/releases{/id}","deployments_url":"https://api.github.com/repos/lepieper/cgp-learn/deployments","created_at":"2016-07-18T08:51:07Z","updated_at":"2016-07-18T14:04:55Z","pushed_at":"2016-07-18T14:11:07Z","git_url":"git://github.com/lepieper/cgp-learn.git","ssh_url":"git@github.com:lepieper/cgp-learn.git","clone_url":"https://github.com/lepieper/cgp-learn.git","svn_url":"https://github.com/lepieper/cgp-learn","homepage":null,"size":49,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"LukasKalbertodt:master","ref":"master","sha":"7313f58098226d7493e423f9aecb681c5e3d17b7","user":{"login":"LukasKalbertodt","id":7419664,"avatar_url":"https://avatars.githubusercontent.com/u/7419664?v=3","gravatar_id":"","url":"https://api.github.com/users/LukasKalbertodt","html_url":"https://github.com/LukasKalbertodt","followers_url":"https://api.github.com/users/LukasKalbertodt/followers","following_url":"https://api.github.com/users/LukasKalbertodt/following{/other_user}","gists_url":"https://api.github.com/users/LukasKalbertodt/gists{/gist_id}","starred_url":"https://api.github.com/users/LukasKalbertodt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukasKalbertodt/subscriptions","organizations_url":"https://api.github.com/users/LukasKalbertodt/orgs","repos_url":"https://api.github.com/users/LukasKalbertodt/repos","events_url":"https://api.github.com/users/LukasKalbertodt/events{/privacy}","received_events_url":"https://api.github.com/users/LukasKalbertodt/received_events","type":"User","site_admin":false},"repo":{"id":63539714,"name":"cgp-learn","full_name":"LukasKalbertodt/cgp-learn","owner":{"login":"LukasKalbertodt","id":7419664,"avatar_url":"https://avatars.githubusercontent.com/u/7419664?v=3","gravatar_id":"","url":"https://api.github.com/users/LukasKalbertodt","html_url":"https://github.com/LukasKalbertodt","followers_url":"https://api.github.com/users/LukasKalbertodt/followers","following_url":"https://api.github.com/users/LukasKalbertodt/following{/other_user}","gists_url":"https://api.github.com/users/LukasKalbertodt/gists{/gist_id}","starred_url":"https://api.github.com/users/LukasKalbertodt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukasKalbertodt/subscriptions","organizations_url":"https://api.github.com/users/LukasKalbertodt/orgs","repos_url":"https://api.github.com/users/LukasKalbertodt/repos","events_url":"https://api.github.com/users/LukasKalbertodt/events{/privacy}","received_events_url":"https://api.github.com/users/LukasKalbertodt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LukasKalbertodt/cgp-learn","description":"Temporary test repository to learn working with Git and Rust (German!)","fork":false,"url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn","forks_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/forks","keys_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/teams","hooks_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/hooks","issue_events_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/issues/events{/number}","events_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/events","assignees_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/assignees{/user}","branches_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/branches{/branch}","tags_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/tags","blobs_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/languages","stargazers_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/stargazers","contributors_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/contributors","subscribers_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/subscribers","subscription_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/subscription","commits_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/contents/{+path}","compare_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/merges","archive_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/downloads","issues_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/issues{/number}","pulls_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/labels{/name}","releases_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/releases{/id}","deployments_url":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/deployments","created_at":"2016-07-17T15:48:13Z","updated_at":"2016-07-18T14:20:52Z","pushed_at":"2016-07-18T14:21:09Z","git_url":"git://github.com/LukasKalbertodt/cgp-learn.git","ssh_url":"git@github.com:LukasKalbertodt/cgp-learn.git","clone_url":"https://github.com/LukasKalbertodt/cgp-learn.git","svn_url":"https://github.com/LukasKalbertodt/cgp-learn","homepage":null,"size":1168,"stargazers_count":1,"watchers_count":1,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":16,"forks":22,"open_issues":16,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/pulls/61"},"html":{"href":"https://github.com/LukasKalbertodt/cgp-learn/pull/61"},"issue":{"href":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/issues/61"},"comments":{"href":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/LukasKalbertodt/cgp-learn/statuses/0e571db86cedf42d08682345b5070151c017152d"}}}}
{"actor":{"display_login":"jonas-schievink"}}