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 listJul 18, 2025 17:19vahookvahookScore: 17,517Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2025 17:1917,41631,611,96015,326,00002,355,200
2Jul 18, 2025 17:1917,42632,826,02513,291,0002,044,0002,473,984
3Jul 18, 2025 17:1917,46135,815,86415,366,00002,293,760
4Jul 18, 2025 17:1917,46836,110,68715,372,00002,355,200
5Jul 18, 2025 17:1917,51739,005,55615,415,00002,420,736
6Jul 18, 2025 17:1917,59540,538,85814,452,0001,032,0002,482,176
7Jul 18, 2025 17:1917,59933,916,54015,487,00002,412,544
8Jul 18, 2025 17:1917,60142,961,09215,489,00002,428,928
9Jul 18, 2025 17:1917,72838,955,10315,601,00002,404,352