What did the United States hope to achieve with the Manhattan Project?

A. A way to detect Japanese aircraft carriers
B. The creation of an atomic weapon
C. A method to defeat kamikaze pilots
D. A system to detect U-boats in the Atlantic