Title: the class PartitionPrimeNumbers has an error at line 36 and don't compile · Issue #16 · java8/Java8InAction · GitHub
Open Graph Title: the class PartitionPrimeNumbers has an error at line 36 and don't compile · Issue #16 · java8/Java8InAction
X Title: the class PartitionPrimeNumbers has an error at line 36 and don't compile · Issue #16 · java8/Java8InAction
Description: public static boolean isPrime(List
Open Graph Description: public static boolean isPrime(List
X Description: public static boolean isPrime(List<Integer> primes, Integer candidate) { double candidateRoot = Math.sqrt((double) candidate); //return takeWhile(primes, i -> i <= candidateRoot).stream...
Opengraph URL: https://github.com/java8/Java8InAction/issues/16
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"the class PartitionPrimeNumbers has an error at line 36 and don't compile","articleBody":" public static boolean isPrime(List\u003cInteger> primes, Integer candidate) {\r\n double candidateRoot = Math.sqrt((double) candidate);\r\n //return takeWhile(primes, i -> i \u003c= candidateRoot).stream().noneMatch(i -> candidate % i == 0);\r\n return primes.stream().**takeWhile**(i -> i \u003c= candidateRoot).noneMatch(i -> candidate % i == 0);\r\n }\r\n-> the function takeWhile is invalid or doesn't exists","author":{"url":"https://github.com/wilsonpenha","@type":"Person","name":"wilsonpenha"},"datePublished":"2017-07-23T16:33:44Z","url":"https://github.com/java8/Java8InAction/issues/16"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cc3d051d-26b9-638f-e8e2-57df7806bf5b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B574:196F6:59BE04:7B3CDB:6AFC106D |
| html-safe-nonce | 0b5b072e48e8d9829a147967da68e3ed200c4c07df54b547851fa29aead64da2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTc0OjE5NkY2OjU5QkUwNDo3QjNDREI6NkFGQzEwNkQiLCJ2aXNpdG9yX2lkIjoiNzU2Nzg1NjMzNDM5ODAzNDAyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a97668e4e743d294a9b8cf9d321fe397011c5c2f506b31efabf594e7a98583e7 |
| hovercard-subject-tag | issue:244921050 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/java8/Java8InAction/16/issue_layout |
| twitter:image | https://opengraph.githubassets.com/65b53d6107a52ca8c596f7baac10af7710e645976671cb4e9eddd972fcd2354f/java8/Java8InAction/issues/16 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/65b53d6107a52ca8c596f7baac10af7710e645976671cb4e9eddd972fcd2354f/java8/Java8InAction/issues/16 |
| og:image:alt | public static boolean isPrime(List |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wilsonpenha |
| hostname | github.com |
| expected-hostname | github.com |
| None | fa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f |
| turbo-cache-control | no-preview |
| go-import | github.com/java8/Java8InAction git https://github.com/java8/Java8InAction.git |
| octolytics-dimension-user_id | 5799035 |
| octolytics-dimension-user_login | java8 |
| octolytics-dimension-repository_id | 13942024 |
| octolytics-dimension-repository_nwo | java8/Java8InAction |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13942024 |
| octolytics-dimension-repository_network_root_nwo | java8/Java8InAction |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b3b5633a74535d9c23385512d534c66c8fde1907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width