Skip to content

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