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 16:10Victor MerckléVictor MerckléScore: 21,964Success
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 16:1121,89534,788,32618,254,0001,014,0002,371,584
2Apr 20, 2026 16:1121,92641,947,56118,280,0001,015,0002,375,680
3Apr 20, 2026 16:1121,94344,660,09618,294,0001,016,0002,379,776
4Apr 20, 2026 16:1121,96441,678,26718,312,0001,017,0002,379,776
5Apr 20, 2026 16:1121,96440,876,53418,312,0001,017,0002,367,488
6Apr 20, 2026 16:1122,03948,550,02818,375,0001,020,0002,371,584
7Apr 20, 2026 16:1122,04738,757,85218,381,0001,021,0002,379,776
8Apr 20, 2026 16:1122,05048,756,78118,383,0001,021,0002,375,680
9Apr 20, 2026 16:1122,10238,525,95918,427,0001,023,0002,256,896