forked from koii-network/task-tester-1
-
Notifications
You must be signed in to change notification settings - Fork 3
Implement GCD Calculator Using Prime Factorization Approach #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
momstrosity
wants to merge
24
commits into
d695e95f-4a47-4e61-99d2-8b0e35265e59
Choose a base branch
from
gcd-calculator-prime-factors-1747937802
base: d695e95f-4a47-4e61-99d2-8b0e35265e59
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Implement GCD Calculator Using Prime Factorization Approach #19
momstrosity
wants to merge
24
commits into
d695e95f-4a47-4e61-99d2-8b0e35265e59
from
gcd-calculator-prime-factors-1747937802
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…265e59-merged Robust Mathematical Utilities: Prime Operations and GCD Optimization
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implement GCD Calculator Using Prime Factorization Approach
Description
Task
Implement GCD Calculator Using Prime Factors
Acceptance Criteria
Summary of Work
Overview
This pull request implements a Greatest Common Divisor (GCD) calculator using prime factorization as the core algorithm. The implementation provides a robust and efficient method to calculate the GCD of multiple integers.
Components Implemented
Prime Checker (
src/prime_checker.py)is_prime()function to determine primality of a numberPrime Factorization (
src/prime_factorization.py)prime_factorization()function to decompose numbers into prime factorsGCD Calculator (
src/gcd_calculator.py)gcd_prime_factors()function using prime factorization methodTesting Approach
Acceptance Criteria Met
Performance Considerations
Potential Future Improvements
Test Results
Notes
Changes Made
Tests
Signatures
Staking Key
AEghvdqmRtc3fjKXfNTMJJ6WshksgWuJ9YBExgsZu8cN: 95AcoUrePbZnwxoXAfvyKyBkvs2amCKzFgK5jxDjAPLCQ82pNqLNihAGpFAWoywcPR3s8GNMZfPh7cnpr1hNn3mAscRhDaX1X9jJNjvhpCTMmLFZf6GKRkYboeEkNuWHBJmBzgzD4Yjc2B6w6PGS2ytPoLQYqwUextGhZbX9778bvwRuDRoHfduD4GDubfK3TqxKiqUL9QDxP2BK6gE2MHGdEGbZmY7irtHLFYeB5n5xg9jZ9qctAVDrgPMa6VN9VRkp5LdoUwu9t5yybE9vxg6oyUkTnvke6oHPdRrjGNw5TaBZyW1Bf3geMbiFwdQ8xBUUhCq5uBE66DTVk3ifeA9TrsVUS2Q9i4gHDX6NHt9ykHsLzNpMkPvKopwTGXP77XcVhxN4L5gMhsm7N1AbVELtTm9tDjzqQR2
Public Key
AwXAtX7tMhL4JyB8NfXdsrqc1UifaMyap3c9bpN9RMse: Hwd865ExzRRa5fQAGqEm4cdLFpH56QCEZ39u45U1rfh3tmmv8nAjoiVZuWWvGDBd6ghk1WaDZrzGqcKyXRt7T63CjqFAkYGjaJ7EPs68rzZkXhuoVd3AjvD1TjDxYT6GYj1cH2tXq9UBQ4WYTpRLZsLMU7nixpH7aYkkBeNafwFkkwxBek9nYpUD9jsm3Nk1o2q3gpujvHokbnC4cCmgDgjjZds9kSxB4J1mQdX75SaQ9Q9LS4VEPTi6G9Fi1975KL2Gj3Q47XtGPSpcmoc7n925GvEEwGxVSUCTnHPxasjy4vAofjMPQjXcwdFqPcYDmSejJFGdWRGpi2w9ASYRgLs9EF77HD37LJM5bpDwdNrnQ43sRCFkw3Efw5L4baDZN49ZWYPxjDK5pNmnx3PRL3QLAxEiXCBVo1e