diff --git a/src/multiplication.c b/src/multiplication.c index 45f1fb7..4c1befe 100644 --- a/src/multiplication.c +++ b/src/multiplication.c @@ -96,7 +96,7 @@ int multi_using_modulo(int num1, int num2, int modulo) { } int multi_by_prime(int num, int prime) { - return num * (prime - 1) + num; + return num * (prime - 2) + num; } int multi_using_increment(int num1, int num2) {