It started out as a joke. Sam woke up, pulled her arm out from under Rodney and went to use his laptop to finish some last minute calculations. To her surprise, she found that his computer was linked to an Atlantis module running a constant program. She laughed out loud, waking him, when she realized that he was using a relatively tiny piece of the base's capability to calculate pi. She knew that the computers on Earth still had it at around a trillion digits and it was still going. On and on, no end in sight, no obvious pattern to the numbers... there literally was no end to it.
But what if there was?
She copied the program as McKay watched her from the bed. He said, "You know, you're just going to double the memory we're using..."
"What's the matter, McKay?" she asked as she slipped the disc into the pocket of her jacket. She returned to bed and stretched out on top of him. "Worried I might solve it before you?"
After that, their nights together always ended the same way. Him with the sheet around his waist, her in boxers and a tank top, laptops back to back, urging their laptops to complete the computations. One night, as Sam ate a lemon pudding to psych him out, her computer beeped. She thought she might have gotten an email, but then she saw a message flashing on the screen. The spoon was sticking out of her mouth and her eyes widened. "Oh, my God."
"What?" McKay said, peering over the top of his computer.
"What?!" He stood and the sheet fell away from his waist.
Sam glanced at his midsection, smirked and gestured at the screen with her spoon. "It's done. It... it's done computing."
"Are you sure it didn't just give up?"
"Well?" he asked. "What? What's the last digit?"
Sam grinned as she looked to the answer of his question. "Oh, that's nowhere near as interesting as the last two digits."
"Hmm? Don't keep us in suspense, Colonel."
Sam turned her laptop around. "Forty-two," she said. "What else?"
Summary: Sam and McKay have an impossible-to-win contest and, surprisingly, one of them wins.