H
H
Homemade2022-02-07 17:47:44
Algorithms
Homemade, 2022-02-07 17:47:44

Why is my solution to this problem wrong?

Problem
My solution
For example, with d = 3, the author's solution gives 55 and I have 28. It seems to me that I did not quite understand the problem. Help me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wataru, 2022-02-07
@Homemade

28 is not suitable here, because the number must have at least 4 divisors and all divisors differ by at least d.
28 has six factors (1, 2, 4, 7, 14, 28). Among them there are divisors 1 and 2, which differ by less than d=3.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question