From 086a20ec8780559b42fd0482d1392232e5021dce Mon Sep 17 00:00:00 2001 From: Ambarish-2002 Date: Wed, 25 Sep 2024 01:10:15 -0700 Subject: [PATCH] Update are_coprime.ts --- maths/are_coprime.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/maths/are_coprime.ts b/maths/are_coprime.ts index 65658984..98f37f86 100644 --- a/maths/are_coprime.ts +++ b/maths/are_coprime.ts @@ -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 =>{