Skip to content
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

Feat(maths): add check co-prime function #250

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ambarish-2002
Copy link

@Ambarish-2002 Ambarish-2002 commented Sep 25, 2024

added function to check is two numbers are co-prime mentioned #10

@Ambarish-2002 Ambarish-2002 changed the title Feat(maths): add check co-prime function#213 Feat(maths): add check co-prime function Sep 25, 2024

export const areCoprime = (a: number, b: number): boolean =>{

if(greatestCommonFactor([a,b]) === 1){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just export const areCoprime = (a: number, b: number): boolean => greatestCommonFactor([a, b]) === 1

@appgurueu appgurueu mentioned this pull request Oct 3, 2024
@@ -0,0 +1,18 @@
/**
* @function areCoprime
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @function areCoprime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants