Are there any long term cognitive impairments from prolonged period reduced sleep?
Wikipedia has some good information on this issue. Search for:

Effects of sleep deprivation on cognitive performance

In summary, 'yes', sleep deprivation can have a multitude of negative consequences on your cognitive abilities, like weakening your ability to handle complex cognitive tasks.