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 22:22olliecrowolliecrowScore: 122,919Success
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 22:23122,185124,222,594104,509,0003,014,0002,539,520stderr
2Apr 24, 2026 22:23122,469128,316,120103,782,0003,991,0002,535,424stderr
3Apr 24, 2026 22:23122,601123,385,273103,894,0003,995,0002,547,712stderr
4Apr 24, 2026 22:23122,860125,105,310104,113,0004,004,0002,547,712stderr
5Apr 24, 2026 22:23122,919126,472,791104,163,0004,006,0002,519,040stderr
6Apr 24, 2026 22:23122,936123,728,204104,178,0004,006,0002,539,520stderr
7Apr 24, 2026 22:23123,134123,175,230105,349,0003,009,0002,531,328stderr
8Apr 24, 2026 22:23123,303126,322,198105,493,0003,014,0002,334,720stderr
9Apr 24, 2026 22:23123,337121,898,658105,523,0003,014,0002,338,816stderr