Hello there!
No, 1 is not the only number that is neither prime nor composite.
0 is neither prime not composite because it has infinite factors. Composite numbers have more than 2 factors, but they must have a finite amount o factors. Since 0 has infinite factors, then it's neither prime nor composite.
Hope it helps!
~Just a cheerful gal
#CarryOnLearning
![SilentNature](https://img.qammunity.org/2022/formulas/mathematics/high-school/46ekxkkguui8z2eus8608myvqhs69fgcc3.png)