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 6, 2026 03:45vahookvahookScore: 3,501Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 03:463,44021,326,7261,009,0002,018,0002,494,464
2Feb 6, 2026 03:463,46820,682,8061,017,0002,035,0002,502,656
3Feb 6, 2026 03:453,49818,246,8751,026,0002,052,0002,498,560
4Feb 6, 2026 03:463,50118,933,8401,027,0002,054,0002,494,464
5Feb 6, 2026 03:453,52321,343,7981,033,0002,067,0002,502,656
6Feb 6, 2026 03:453,52817,103,2231,035,0002,070,0002,494,464