Use multi-threading to calculate sum of 10 thoursand integers in Java

I want to use multi-threading to calculate the sum of 10 thousand integers (from 1 to 10000). I have the basic understanding of synchronized key work. I know synchronized allows only one thread at a time during the execution and semaphore allows a certain number of threads at a time.