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 19, 2026 06:15Dominique GarmierDominique GarmierScore: 23,878Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 19, 2026 06:1523,76346,662,17618,920,0001,991,0002,383,872
2Mar 19, 2026 06:1523,80645,415,95019,952,000997,0002,281,472
3Mar 19, 2026 06:1523,81445,526,06919,959,000997,0002,281,472
4Mar 19, 2026 06:1523,84745,781,92519,986,000999,0002,281,472
5Mar 19, 2026 06:1523,87847,784,31220,013,0001,000,0002,392,064
6Mar 19, 2026 06:1523,88242,413,96819,015,0002,001,0002,281,472
7Mar 19, 2026 06:1523,90244,094,22920,033,0001,001,0002,281,472
8Mar 19, 2026 06:1523,91952,529,11020,047,0001,002,0002,281,472
9Mar 19, 2026 06:1523,97647,850,96619,090,0002,009,0002,281,472