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:20Dominique GarmierDominique GarmierScore: 10,480Success
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:2110,33424,587,4426,063,0003,031,0002,371,584
2Apr 28, 2026 12:2110,34727,598,9937,083,0002,023,0002,326,528
3Apr 28, 2026 12:2110,38629,032,5957,109,0002,031,0002,367,488
4Apr 28, 2026 12:2110,45726,340,3727,158,0002,045,0002,424,832
5Apr 28, 2026 12:2110,48026,056,7378,199,0001,024,0002,371,584
6Apr 28, 2026 12:2110,48523,620,0477,177,0002,050,0002,367,488
7Apr 28, 2026 12:2110,52031,763,0528,230,0001,028,0002,367,488
8Apr 28, 2026 12:2110,56030,123,6438,261,0001,032,0002,437,120
9Apr 28, 2026 12:2110,57828,641,5718,275,0001,034,0002,367,488