⚡ Build the skills to land top-paying quant jobs. Offer ends in 25d 04h 46m 57s25 days 4 hours 46 minutes 57 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.