Lumosity Stanford, Calif. was recently crowned the brainiest city in the U.S. by Lumosity, cognitive training site run by Lumos Labs.

Stanford beat 478 other cities for the title. Each city was ranked by the residents' average brain performance score across Lumosity's five cognitive training exercises: Speed, Attention, Flexibility, Memory, and Problem Solving.

Over 3 million people participated in this year's study, conducted by Dr. Daniel A. Sternberg, each between the ages of 15 and 85 years old. (You can read the full methodology here.)

Not surprisingly, college towns dominated the Lumosity rankings just like they did last year. Stanford was followed closely by Princeton, NJ, both home to two of the best universities in the country.

Here's the complete list: