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 listMay 3, 2026 20:35TudyMTudyMScore: 30,134Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 20:4030,05642,243,86725,380,0001,070,0002,375,680
2May 3, 2026 20:4030,06241,543,32925,384,0001,071,0002,371,584
3May 3, 2026 20:4030,09041,029,12025,411,0001,069,0002,359,296
4May 3, 2026 20:4030,12343,916,44625,441,0001,068,0002,379,776
5May 3, 2026 20:4030,13443,328,13725,444,0001,074,0002,371,584
6May 3, 2026 20:4030,19243,028,05025,508,0001,061,0002,318,336
7May 3, 2026 20:4030,23943,294,13225,554,0001,057,0002,371,584
8May 3, 2026 20:4030,38054,489,61625,668,0001,067,0002,359,296
9May 3, 2026 20:4030,50255,103,69225,768,0001,074,0002,371,584