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 26, 2026 04:46olliecrowolliecrowScore: 130,565Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 04:47130,109133,758,458113,492,0001,004,0002,412,544stderr
2Apr 26, 2026 04:47130,400137,185,891113,746,0001,006,0002,416,640stderr
3Apr 26, 2026 04:47130,520130,535,562112,861,0001,997,0002,408,448stderr
4Apr 26, 2026 04:47130,531131,097,486113,861,0001,007,0002,420,736stderr
5Apr 26, 2026 04:47130,565134,353,755112,900,0001,998,0002,588,672stderr
6Apr 26, 2026 04:47130,657128,433,000112,980,0001,999,0002,469,888stderr
7Apr 26, 2026 04:47130,686132,465,617113,004,0002,000,0002,404,352stderr
8Apr 26, 2026 04:47130,730134,138,818113,043,0002,000,0002,408,448stderr
9Apr 26, 2026 04:47130,851135,544,979114,148,0001,001,0002,412,544stderr