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 24, 2026 08:51olliecrowolliecrowScore: 262,051Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 08:52259,729247,955,736225,555,0003,007,0002,453,504stderr
2Apr 24, 2026 08:52261,176243,491,442224,839,0004,996,0002,551,808stderr
3Apr 24, 2026 08:52261,738245,873,773225,323,0005,007,0002,461,696stderr
4Apr 24, 2026 08:52261,794242,637,564226,373,0004,006,0002,449,408stderr
5Apr 24, 2026 08:52262,051248,547,395226,595,0004,010,0002,445,312stderr
6Apr 24, 2026 08:52262,468247,858,215225,973,0004,999,0002,449,408stderr
7Apr 24, 2026 08:52262,477246,213,989226,981,0003,999,0002,396,160stderr
8Apr 24, 2026 08:52263,450250,352,475226,840,0004,996,0002,465,792stderr
9Apr 24, 2026 08:52263,531248,816,870225,911,0005,997,0002,445,312stderr