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 listAug 15, 2026 18:59Tomislav TunkovicTomislav TunkovicScore: 2,685Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 15, 2026 19:012,67810,540,7652,357,000020,480
2Aug 15, 2026 19:012,67810,487,5312,357,000020,480
3Aug 15, 2026 19:012,67911,834,9272,358,000020,480
4Aug 15, 2026 19:012,68010,485,4592,359,000020,480
5Aug 15, 2026 19:012,68510,478,7852,363,000020,480
6Aug 15, 2026 19:012,68910,600,6312,367,000020,480
7Aug 15, 2026 19:012,71310,556,9382,388,000020,480
8Aug 15, 2026 19:012,72010,586,2942,394,000020,480
9Aug 15, 2026 19:012,82710,701,4172,488,000020,480