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 15:24Dominique GarmierDominique GarmierScore: 12,632Success
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 15:2612,52127,922,7748,014,0003,005,0002,359,296
2Apr 20, 2026 15:2612,53129,410,9288,021,0003,007,0002,359,296
3Apr 20, 2026 15:2612,59524,914,1649,069,0002,015,0002,359,296
4Apr 20, 2026 15:2612,60132,594,5598,065,0003,024,0002,363,392
5Apr 20, 2026 15:2612,63228,590,4349,096,0002,021,0002,367,488
6Apr 20, 2026 15:2612,63527,920,0779,098,0002,021,0002,355,200
7Apr 20, 2026 15:2612,71427,854,3599,155,0002,034,0002,367,488
8Apr 20, 2026 15:2612,71930,440,0859,158,0002,035,0002,367,488
9Apr 20, 2026 15:2612,78027,616,3708,180,0003,067,0002,359,296