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 30, 2026 05:33Charles CabergsCharles CabergsScore: 34,318Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 05:3434,24647,899,58119,087,00011,050,0002,523,136stderr
2Apr 30, 2026 05:3434,28545,722,05823,131,0007,040,0002,527,232stderr
3Apr 30, 2026 05:3434,29048,209,68125,147,0005,029,0002,310,144stderr
4Apr 30, 2026 05:3434,31745,985,84619,126,00011,073,0002,523,136stderr
5Apr 30, 2026 05:3434,31847,673,85218,120,00012,080,0002,310,144stderr
6Apr 30, 2026 05:3434,41446,516,64224,228,0006,057,0002,527,232stderr
7Apr 30, 2026 05:3434,44846,994,59524,252,0006,063,0002,519,040stderr
8Apr 30, 2026 05:3434,48044,504,67723,263,0007,080,0002,326,528stderr
9Apr 30, 2026 05:3434,49052,184,85524,282,0006,070,0002,539,520stderr