This number is a prime.
9829 is the largest 4-digit prime that's the sum of 7 distinct powers of 3, with 9829 = 3^0 + 3^3 + 3^4 + 3^5 + 3^6 + 3^7 + 3^8. [Keith]