We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b347325 commit 086a20eCopy full SHA for 086a20e
maths/are_coprime.ts
@@ -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
6
+ * @example areCoprime(2,4) = false
7
+ * @example areCoprime(2,3) = true
8
+ */
9
+
10
import { greatestCommonFactor } from "./greatest_common_factor"
11
12
export const areCoprime = (a: number, b: number): boolean =>{
0 commit comments