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 29, 2026 21:52olliecrowolliecrowScore: 12,664Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 21:5312,45927,223,1029,968,000996,0002,330,624stderr
2Apr 29, 2026 21:5312,56531,397,2319,048,0002,010,0002,338,816stderr
3Apr 29, 2026 21:5312,59726,758,1579,071,0002,015,0002,326,528stderr
4Apr 29, 2026 21:5312,65529,662,6769,112,0002,025,0002,342,912stderr
5Apr 29, 2026 21:5312,66428,218,9399,119,0002,026,0002,347,008stderr
6Apr 29, 2026 21:5312,67132,900,4289,124,0002,027,0002,338,816stderr
7Apr 29, 2026 21:5312,71032,204,6909,152,0002,033,0002,326,528stderr
8Apr 29, 2026 21:5312,71830,487,2979,157,0002,035,0002,322,432stderr
9Apr 29, 2026 21:5312,72228,217,69910,179,0001,017,0002,334,720stderr