3. Arrange the numbers $1 \sim 10$ into a sequence such that the sum of every two adjacent numbers is a prime number, and the sum of the first and last numbers is also a prime number. Then the arrangement is ( $\qquad$ ).