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 20, 2026 21:25Victor MerckléVictor MerckléScore: 22,212Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 21:2621,86139,570,69918,226,0001,012,0002,269,184stderr
2Apr 20, 2026 21:2621,88542,136,77818,246,0001,013,0002,375,680stderr
3Apr 20, 2026 21:2622,12143,606,22218,443,0001,024,0002,379,776stderr
4Apr 20, 2026 21:2622,19841,539,40719,535,00002,371,584stderr
5Apr 20, 2026 21:2622,21247,253,73017,490,0002,057,0002,260,992stderr
6Apr 20, 2026 21:2622,26242,487,68418,560,0001,031,0002,375,680stderr
7Apr 20, 2026 21:2622,26541,424,32818,563,0001,031,0002,375,680stderr
8Apr 20, 2026 21:2622,29842,787,97917,558,0002,065,0002,375,680stderr
9Apr 20, 2026 21:2622,37037,134,55418,650,0001,036,0002,260,992stderr