# [Vyxal](https://github.com/Vyxal/Vyxal) `Ṁ`, 11 bytes ``` ƛkanḟ›;∑?LḊ ``` [Try it Online!](https://vyxal.pythonanywhere.com/#WyLhuYAiLCIiLCLGm2thbuG4n+KAujviiJE/TOG4iiIsIiIsImFiY2IiXQ==)