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:16Dominique GarmierDominique GarmierScore: 10,392Success
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:1710,32722,614,5627,069,0002,019,0002,371,584
2Apr 28, 2026 12:1710,36223,467,9207,093,0002,026,0002,371,584
3Apr 28, 2026 12:1710,37222,386,7817,100,0002,028,0002,359,296
4Apr 28, 2026 12:1710,38524,561,4908,124,0001,015,0002,375,680
5Apr 28, 2026 12:1710,39221,084,6487,113,0002,032,0002,326,528
6Apr 28, 2026 12:1710,39831,392,2997,118,0002,033,0002,371,584
7Apr 28, 2026 12:1710,40130,828,9147,119,0002,034,0002,367,488
8Apr 28, 2026 12:1710,41227,688,4878,145,0001,018,0002,469,888
9Apr 28, 2026 12:1710,54526,476,2717,218,0002,062,0002,498,560