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 7, 2026 03:38zielajzielajScore: 3,465Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 03:373,36119,106,3091,972,000986,0002,535,424
2Feb 7, 2026 03:373,38023,767,5351,983,000991,0002,351,104
3Feb 7, 2026 03:383,46417,672,2332,032,0001,016,0002,347,008
4Feb 7, 2026 03:373,46517,543,1031,016,0002,033,0002,351,104
5Feb 7, 2026 03:383,46819,219,9071,017,0002,035,0002,351,104
6Feb 7, 2026 03:383,51917,804,8231,032,0002,065,0002,355,200