# [Raku], 25 bytes

<!-- language: lang-raku -->

    {(1..$_).grep($_%%*).sum}
```
declare anonymous block
iterate over 1 to implicit parameter ($_ is declared when using block) inclusive
filter (grep) all the range numbers using the whatever variable (*) that are divisible by $_
get the sum of that list
```
### Alternative 25
<!-- language: lang-raku -->

    {^$_ .grep($_%%*).sum+$_}
```
^$_ will give you the range (0..$_ - 1) and then you just add $_ to the end
```
[Try it online!][TIO-ky0xo1hu]

[Raku]: https://www.raku.org/
[TIO-ky0xo1hu]: https://tio.run/##NY3NCoJAGEX331NcRMMJHRpRC8SeoqUggUMM@YejRojPPn0u2p5zOXfUU5u77otTY9bYLh1Kt4VKSr8W8jXpMfTrIDgLyWp3i9V4aDsXRK3ptZXvVXbPMYzvqEzfRKgOjI0ATobMGA3LLFDiMPIzTI0tWBsL08v/aQQeRfBmbmPj0u7RLtwVN1IZkpSSC9KEFBRlyH8 "Raku – Try It Online"