Here is some info from the PET. Maybe this will help. So your engine number would begin with 66X followed by a 5 digit serial number.
It is my understanding that if the engine has been replaced with a Porsche Factory remanufactured engine, there will be a 'AT' at the end of the serial number.