In the gospel of Matthew, it makes it sound in the NASB like the temptations came first after 40 days of fasting.
2 And after He had fasted for forty days and forty nights, He then became hungry**hungry. 3 And the tempter came and said to Him, “If You are the Son of God, command that these stones become bread.” Matthew 4:2-3
Did Satan first come to Messiah on day 40?