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:46zielajzielajScore: 3,420Success
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:463,37221,937,3061,978,000989,0002,338,816
2Feb 7, 2026 03:463,38321,745,667992,0001,985,0002,355,200
3Feb 7, 2026 03:463,41419,726,0582,003,0001,001,0002,347,008
4Feb 7, 2026 03:463,42019,372,8512,007,0001,003,0002,453,504
5Feb 7, 2026 03:463,50820,802,3852,058,0001,029,0002,351,104
6Feb 7, 2026 03:464,08218,576,8433,592,00002,347,008