diff --git a/c/main.c b/c/main.c
@@ -20,7 +20,7 @@
// Let S: N -> N be the sum of the digits of a positive integer.
// For all A and B in N, S(A + B) = S(A) + S(B) - 9k, where k is an integer.
-int sum_digits(unsigned n)
+int sum_digits(unsigned int n)
{
int parc = n;
int sum = 0;
@@ -47,14 +47,11 @@ int counterexempl(int max, int *sums_cache)
int main(int argc, char *argv[])
{
- if (argc > 2)
+ if (argc > 1)
{
unsigned int max = strtoul(argv[1], NULL, 10);
if (!max) return INVALID_INPUT;
- unsigned int n_threads = strtoul(argv[2], NULL, 10);
- if (!n_threads) return INVALID_INPUT;
-
// Create the sums cache
int *sums_cache = malloc(sizeof(int) * (2 * max + 1));
for (int i = 0; i <= 2 * max + 1; i++)