Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listApr 18, 2026 18:51Victor MerckléVictor MerckléScore: 123,058Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 18:51122,673134,926,871105,953,0001,999,0002,260,992
2Apr 18, 2026 18:51122,689139,911,059106,967,000999,0002,392,064
3Apr 18, 2026 18:51122,755133,430,976107,024,0001,000,0002,379,776
4Apr 18, 2026 18:51123,040140,267,399106,270,0002,005,0002,387,968
5Apr 18, 2026 18:51123,058136,371,126107,289,0001,002,0002,383,872
6Apr 18, 2026 18:51123,157132,835,634106,371,0002,007,0002,383,872
7Apr 18, 2026 18:51123,372128,542,945107,562,0001,005,0002,387,968
8Apr 18, 2026 18:51123,657135,290,766106,822,0001,996,0002,523,136
9Apr 18, 2026 18:51123,697138,615,702106,856,0001,997,0002,523,136