Skip to content

Commit

Permalink
Add some punctuation (#2460)
Browse files Browse the repository at this point in the history
Minor grammar and spelling fixes
  • Loading branch information
ConeDragon authored Jun 26, 2024
1 parent 9607704 commit 264d22d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/affine-cipher/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ E(x) = (ai + b) mod m

Where:

- `i` is the letter's index from `0` to the length of the alphabet - 1
- `i` is the letter's index from `0` to the length of the alphabet - 1.
- `m` is the length of the alphabet.
For the Roman alphabet `m` is `26`.
- `a` and `b` are integers which make the encryption key
- `a` and `b` are integers which make up the encryption key.

Values `a` and `m` must be _coprime_ (or, _relatively prime_) for automatic decryption to succeed, i.e., they have number `1` as their only common factor (more information can be found in the [Wikipedia article about coprime integers][coprime-integers]).
In case `a` is not coprime to `m`, your program should indicate that this is an error.
Expand Down

0 comments on commit 264d22d

Please sign in to comment.