Skip to content

Commit

Permalink
Update are_coprime.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambarish-2002 committed Sep 25, 2024
1 parent b347325 commit 086a20e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions maths/are_coprime.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @function areCoprime
* @description Checks if two given numbers are co-prime or not
* @param {a} number - a numeric input value
* @param {a} number - a numeric input value
* @example areCoprime(2,4) = false
* @example areCoprime(2,3) = true
*/

import { greatestCommonFactor } from "./greatest_common_factor"

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

0 comments on commit 086a20e

Please sign in to comment.