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 25, 2026 00:20olliecrowolliecrowScore: 121,887Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 00:21121,323128,053,810102,774,0003,991,0002,453,504stderr
2Apr 25, 2026 00:21121,417121,909,318102,853,0003,994,0002,457,600stderr
3Apr 25, 2026 00:21121,697124,544,771104,092,0003,002,0002,441,216stderr
4Apr 25, 2026 00:21121,827126,256,250103,201,0004,007,0002,457,600stderr
5Apr 25, 2026 00:21121,887124,838,680103,252,0004,009,0002,457,600stderr
6Apr 25, 2026 00:21121,900129,896,132103,262,0004,010,0002,461,696stderr
7Apr 25, 2026 00:21121,907127,108,835103,269,0004,010,0002,514,944stderr
8Apr 25, 2026 00:21121,917125,525,723104,279,0003,008,0002,445,312stderr
9Apr 25, 2026 00:21121,968124,327,935104,323,0003,009,0002,338,816stderr