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 4, 2026 16:30vahookvahookScore: 3,693Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 16:303,60520,472,6011,057,0002,115,0002,502,656
2Feb 4, 2026 16:303,67620,136,9452,157,0001,078,0002,498,560
3Feb 4, 2026 16:303,68225,094,6451,080,0002,160,0002,494,464
4Feb 4, 2026 16:303,69320,692,2312,167,0001,083,0002,277,376
5Feb 4, 2026 16:303,69319,546,6552,167,0001,083,0002,535,424
6Feb 4, 2026 16:303,70919,320,6922,176,0001,088,0002,494,464