Title: math CheckPrime is wrong · Issue #795 · TheAlgorithms/Python · GitHub
Open Graph Title: math CheckPrime is wrong · Issue #795 · TheAlgorithms/Python
X Title: math CheckPrime is wrong · Issue #795 · TheAlgorithms/Python
Description: The current implementation doesn't support: Negative values, -1 is not a prime number. Current implementation raise a TypeError due to math.sqrt on negative values. The current implementation return the wrong value for: 0, 0 doesn't have...
Open Graph Description: The current implementation doesn't support: Negative values, -1 is not a prime number. Current implementation raise a TypeError due to math.sqrt on negative values. The current implementation retur...
X Description: The current implementation doesn't support: Negative values, -1 is not a prime number. Current implementation raise a TypeError due to math.sqrt on negative values. The current implementation r...
Opengraph URL: https://github.com/TheAlgorithms/Python/issues/795
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"math CheckPrime is wrong","articleBody":"The current implementation doesn't support:\r\n\r\n* Negative values, -1 is not a prime number. Current implementation raise a TypeError due to `math.sqrt` on negative values.\r\n\r\nThe current implementation return the wrong value for:\r\n\r\n* 0, 0 doesn't have any divider, primes must have two.\r\n* 1, 1 just have one divider, primes must have two.","author":{"url":"https://github.com/Julien00859","@type":"Person","name":"Julien00859"},"datePublished":"2019-05-10T10:04:03Z","url":"https://github.com/TheAlgorithms/Python/issues/795"}
| 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:1b44ce1e-3557-c027-f9b8-00350762b33a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 956A:11DC7C:1F0D4FE:29EB725:6AFB9DAE |
| html-safe-nonce | 102085d74bfcf2236629bd7330865239ea686d1098c5246c56b4aa89e8e8cedf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTZBOjExREM3QzoxRjBENEZFOjI5RUI3MjU6NkFGQjlEQUUiLCJ2aXNpdG9yX2lkIjoiODgwMTUzNjUzODU2ODI2OTIzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | edfea7b90daae2f2b3b394443691efee09fcbbfb67bb535a18ffac6bff9367ef |
| hovercard-subject-tag | issue:442640110 |
| 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/TheAlgorithms/Python/795/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f82a223ef282312405254cbb401fde3ad8614d502a3933887ab5426d6a9096ee/TheAlgorithms/Python/issues/795 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f82a223ef282312405254cbb401fde3ad8614d502a3933887ab5426d6a9096ee/TheAlgorithms/Python/issues/795 |
| og:image:alt | The current implementation doesn't support: Negative values, -1 is not a prime number. Current implementation raise a TypeError due to math.sqrt on negative values. The current implementation retur... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Julien00859 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3cefd19a936819d82cfb5279d50fb56fe79cb9ec30f0f807e04e89b0c58ffae1 |
| turbo-cache-control | no-preview |
| go-import | github.com/TheAlgorithms/Python git https://github.com/TheAlgorithms/Python.git |
| octolytics-dimension-user_id | 20487725 |
| octolytics-dimension-user_login | TheAlgorithms |
| octolytics-dimension-repository_id | 63476337 |
| octolytics-dimension-repository_nwo | TheAlgorithms/Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 63476337 |
| octolytics-dimension-repository_network_root_nwo | TheAlgorithms/Python |
| 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 | 606800bdb1b81d125fc845bdcc262c9fe063fc8f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width