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 21, 2026 10:19Dominique GarmierDominique GarmierScore: 13,178Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 10:2013,07828,143,20310,463,0001,046,0002,375,680
2Apr 21, 2026 10:2013,12926,369,94910,504,0001,050,0002,379,776
3Apr 21, 2026 10:2013,13129,294,77410,506,0001,050,0002,371,584
4Apr 21, 2026 10:2013,15230,360,61110,522,0001,052,0002,371,584
5Apr 21, 2026 10:2013,17831,456,45110,543,0001,054,0002,379,776
6Apr 21, 2026 10:2013,19527,401,42710,557,0001,055,0002,273,280
7Apr 21, 2026 10:2013,21727,199,36210,574,0001,057,0002,379,776
8Apr 21, 2026 10:2013,22127,593,96610,578,0001,057,0002,371,584
9Apr 21, 2026 10:2013,29228,579,89810,634,0001,063,0002,273,280