I believe the confusion between '500,000 lines' in the question vs '2.5 million/3.5 million' in the answers is the context.
The 500,000 number is involved in the entry, descent, and landing (EDL) process specifically, and the rover systems are millions overall.
Not sure why the values are 1m different, but the 2.5m citation is what is in the linked PDF.