Skip to content

Commit 086a20e

Browse files
committed
Update are_coprime.ts
1 parent b347325 commit 086a20e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

maths/are_coprime.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/**
2+
* @function areCoprime
3+
* @description Checks if two given numbers are co-prime or not
4+
* @param {a} number - a numeric input value
5+
* @param {a} number - a numeric input value
6+
* @example areCoprime(2,4) = false
7+
* @example areCoprime(2,3) = true
8+
*/
9+
110
import { greatestCommonFactor } from "./greatest_common_factor"
211

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

0 commit comments

Comments
 (0)