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 listApr 28, 2026 10:40Charles CabergsCharles CabergsScore: 27,945Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 10:4127,74640,915,35021,365,0003,052,0002,437,120stderr
2Apr 28, 2026 10:4127,85543,720,38522,471,0002,042,0002,498,560stderr
3Apr 28, 2026 10:4127,85739,891,76121,451,0003,064,0002,502,656stderr
4Apr 28, 2026 10:4127,89741,681,34922,505,0002,045,0002,437,120stderr
5Apr 28, 2026 10:4127,94542,801,77021,518,0003,074,0002,502,656stderr
6Apr 28, 2026 10:4127,98742,448,11822,577,0002,052,0002,441,216stderr
7Apr 28, 2026 10:4128,05941,671,76823,664,0001,028,0002,404,352stderr
8Apr 28, 2026 10:4128,09045,947,31122,660,0002,060,0002,445,312stderr
9Apr 28, 2026 10:4128,14841,534,54922,707,0002,064,0002,445,312stderr