I have a problem with the CompositeQ function--it only returns my input. So, by the literature: CompositeQ[4] should return "true". Instead it returns CompositeQ[4].
Any ideas?
For version 8, you can use something like
CompositeQ = Composition[Not, PrimeQ]; CompositeQ[4] (* True *)
Please next time check version when the function was introduced in docs at the bottom of the function's page. It is version 10 for CompositeQ, and your version is 8.
http://reference.wolfram.com/language/ref/CompositeQ.html
In[1]:= CompositeQ[4]
Out[1]= True