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 listFeb 6, 2026 01:59zielajzielajScore: 198,932Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 01:59196,981191,646,552173,343,00002,363,392
2Feb 6, 2026 01:59197,502199,717,379172,804,000998,0002,342,912
3Feb 6, 2026 01:59198,292193,487,597174,497,00002,277,376
4Feb 6, 2026 01:59198,932198,101,224173,060,0002,000,0002,535,424
5Feb 6, 2026 01:59236,690232,097,050207,286,0001,001,0002,351,104
6Feb 6, 2026 01:59286,092276,587,209250,762,000999,0002,535,424