Problem 3556 · Medium

Sum of Largest Prime Substrings

Read every substring as an integer, keep each distinct prime once, and add the three largest.

Open the interactive visualisation