Almajester/gpuLucas — pull request #1 by ah42 (2012-02-24 06:31:53+00:00)
Title: Add linux Makefile, and output of non-prime residue

print_residue() currently assumes that sizeof(unsigned long) == 8, which may break things on other platforms, but it seems a similar assumption is made elsewhere ("if not 8, you're in trouble"), so I'm not too concerned.

I have confirmed that the residue output is correct for M_1257911 (non-prime):
M_1257911, 0x078fc39a6176c78a, n = 65536, gpuLucas

GIMPS shows this same residue as:
Verified LL	078FC39A6176C78A by "Brian Schroeder & Aaron Koller"
Verified LL	078FC39A6176C78A by "Brian J. Beesley"