Search engines don't consider the use of www or not as a ranking factor, because it has no value in improving the relevance of their search results or improving the user experience.
There is one exception, however. You don't want to use both a www version of the site and a non-www version.
If you do use both www and non-www, then you'll have duplicate content problems, as some may have mentioned.