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 listMar 24, 2026 11:16Dominique GarmierDominique GarmierScore: 29,884Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 24, 2026 11:1629,59548,401,27425,043,0001,001,0002,363,392
2Mar 24, 2026 10:3329,70960,017,56725,139,0001,005,0002,359,296
3Mar 24, 2026 10:3329,77649,267,36525,196,0001,007,0002,359,296
4Mar 24, 2026 11:1629,88450,561,04225,287,0001,011,0002,289,664
5Mar 24, 2026 10:3330,08052,321,16625,452,0001,018,0002,363,392
6Mar 24, 2026 11:1630,12050,422,66125,487,0001,019,0002,355,200