{"action":"created","issue":{"url":"https://api.github.com/repos/wegotcoders/wgc_groundwork/issues/32","labels_url":"https://api.github.com/repos/wegotcoders/wgc_groundwork/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/wegotcoders/wgc_groundwork/issues/32/comments","events_url":"https://api.github.com/repos/wegotcoders/wgc_groundwork/issues/32/events","html_url":"https://github.com/wegotcoders/wgc_groundwork/pull/32","id":90430390,"number":32,"title":"My completed groundwork/programming challenge","user":{"login":"cltweedie","id":11664034,"avatar_url":"https://avatars.githubusercontent.com/u/11664034?v=3","gravatar_id":"","url":"https://api.github.com/users/cltweedie","html_url":"https://github.com/cltweedie","followers_url":"https://api.github.com/users/cltweedie/followers","following_url":"https://api.github.com/users/cltweedie/following{/other_user}","gists_url":"https://api.github.com/users/cltweedie/gists{/gist_id}","starred_url":"https://api.github.com/users/cltweedie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cltweedie/subscriptions","organizations_url":"https://api.github.com/users/cltweedie/orgs","repos_url":"https://api.github.com/users/cltweedie/repos","events_url":"https://api.github.com/users/cltweedie/events{/privacy}","received_events_url":"https://api.github.com/users/cltweedie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-23T16:18:22Z","updated_at":"2015-06-30T13:01:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wegotcoders/wgc_groundwork/pulls/32","html_url":"https://github.com/wegotcoders/wgc_groundwork/pull/32","diff_url":"https://github.com/wegotcoders/wgc_groundwork/pull/32.diff","patch_url":"https://github.com/wegotcoders/wgc_groundwork/pull/32.patch"},"body":"I've solved the primes problem both with and without the built-in prime library, but as my solution without it takes around a minute to calculate the sum, the page uses the more efficient one with it. I've left my own algorithm commented out below it for reference.\r\n"},"comment":{"url":"https://api.github.com/repos/wegotcoders/wgc_groundwork/issues/comments/117169251","html_url":"https://github.com/wegotcoders/wgc_groundwork/pull/32#issuecomment-117169251","issue_url":"https://api.github.com/repos/wegotcoders/wgc_groundwork/issues/32","id":117169251,"user":{"login":"cltweedie","id":11664034,"avatar_url":"https://avatars.githubusercontent.com/u/11664034?v=3","gravatar_id":"","url":"https://api.github.com/users/cltweedie","html_url":"https://github.com/cltweedie","followers_url":"https://api.github.com/users/cltweedie/followers","following_url":"https://api.github.com/users/cltweedie/following{/other_user}","gists_url":"https://api.github.com/users/cltweedie/gists{/gist_id}","starred_url":"https://api.github.com/users/cltweedie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cltweedie/subscriptions","organizations_url":"https://api.github.com/users/cltweedie/orgs","repos_url":"https://api.github.com/users/cltweedie/repos","events_url":"https://api.github.com/users/cltweedie/events{/privacy}","received_events_url":"https://api.github.com/users/cltweedie/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T13:01:02Z","updated_at":"2015-06-30T13:01:02Z","body":"@benlovell I've made the changes you suggested. The only thing I'm having trouble with is the implicit returns in the ruby code.\r\n\r\nWhen I remove the explicit return from Palindrome.calculate, it returns \"100..999\" and Pandigital.calculate returns \"1..2000\", as these are the ranges iterated over in their .each methods. Is there a way I can force the method to implicitly return the last evaluated expression in .each, instead of these ranges, or am I missing something obvious?"}}