Skip to content

Commit

Permalink
Fix grammar in function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Ferris committed Sep 19, 2023
1 parent 40fa363 commit bc4604d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jisg",
"version": "0.9.2",
"version": "0.9.3",
"description": "Implementations of select OEIS integer sequences in JavaScript.",
"keywords": [
"integer",
Expand Down
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function primeFactorization(n: bigint, multiplicity = false): bigint[] {
}
}

function isCoprime(a: bigint, b: bigint): boolean {
function areCoprime(a: bigint, b: bigint): boolean {
const pfa = primeFactorization(a)
const pfb = primeFactorization(b)
for (const n of pfa) {
Expand All @@ -61,7 +61,7 @@ export function eulerPhi(n: bigint): bigint {
}
let x = 0n
for (let i = 1n; i < n; i++) {
if (isCoprime(n, i)) {
if (areCoprime(n, i)) {
x++
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default '0.9.2'
export default '0.9.3'

0 comments on commit bc4604d

Please sign in to comment.