⚡ Build the skills to land top-paying quant jobs. Offer ends in 30d 01h 35m 46s30 days 1 hours 35 minutes 46 seconds.
In this puzzle, an almost magic square is a 3-by-3 grid of positive integers whose 8 line sums (3 rows, 3 columns and 2 diagonals) differ from each other by at most 1. So every line sums to either S or S+1 for some S.
Fill the grid below with nine distinct positive integers so that:
+---+---+---+
| | | |
+---+---+---+
| | | |
+---+---+---+
| | | |
+---+---+---+Question: What is the smallest possible total of the nine numbers?
Answer format: a single integer.