Problem 3556 · Medium
Read every substring as an integer, keep each distinct prime once, and add the three largest.
Open the interactive visualisation