The joke is a play on words.  The word 'incremental' has 'mental' in it.  To say someone 'went mental' is to say that they had a mental breakdown.  'Incremental' means to be adding continually over time in 'increments'.
A mathematician that couldn ' t stop adding up recently went incremental .