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 28, 2026 12:01Dominique GarmierDominique GarmierScore: 10,527Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 12:0210,31431,103,0737,060,0002,017,0002,392,064
2Apr 28, 2026 12:0210,39025,675,8915,080,0004,064,0002,383,872
3Apr 28, 2026 12:0210,43127,703,2808,160,0001,020,0002,383,872
4Apr 28, 2026 12:0210,45631,071,9088,180,0001,022,0002,392,064
5Apr 28, 2026 12:0210,52725,018,1948,235,0001,029,0002,387,968
6Apr 28, 2026 12:0210,54221,989,6108,247,0001,030,0002,387,968
7Apr 28, 2026 12:0210,55927,855,7108,260,0001,032,0002,379,776
8Apr 28, 2026 12:0210,57724,966,8539,308,00002,387,968
9Apr 28, 2026 12:0210,57826,114,1758,275,0001,034,0002,404,352