The researchers looked at 3,000 men and 3,500 women over 40 in Australia, The Times reported.

Participants were asked to read words, recite lists of numbers and link letters and numbers in a pattern in timed situations, The Telegraph reported.

>> Read more trending stories  

The researchers found that people who worked about 25 hours a week had the best scores. Those who didn't work scored significantly lower. Researchers said those who worked more than 55 hours a week also scored lower than the 25-hour-a-week workers. Working 40 hours slowed a slight decrease in the cognitive test, The Telegraph reported.

The results were published by The University of Melbourne Faculty of Business and Economics.

Researchers said that, "Work can be a double-edged sword, in that it can stimulate brain activity, but at the same time long working hours can cause fatigue and stress, which potentially damage cognitive functions."