Ad
  • Custom User Avatar

    I haven't checked whether your code fails or passes, but you are definitely getting a bunch of warnings (which are not errors, though they appear in stderr in the output). Write your code in a proper IDE with linting support (e.g. VS Code + RustAnalyzer) to see all the slightly silly thing's your code is doing.

    I just solved this and there are not errors in sample or submission tests.

  • Custom User Avatar

    It's normal to see such a big result because you need to find the least common multiple of several elements. For example, the least common multiple of 11, 13, 15 and 17 is 11 * 13 * 15 * 17 = 36465. Maybe it could help to (re-)read about what a least common multiple is. :)