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 29, 2026 13:39TudyMTudyMScore: 33,189Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 13:4332,85044,428,36825,918,0002,990,0002,375,680
2Apr 29, 2026 13:4333,08143,666,55726,101,0003,011,0002,375,680
3Apr 29, 2026 13:4333,11251,599,08727,130,0002,009,0002,371,584
4Apr 29, 2026 13:4333,16445,087,35927,173,0002,012,0002,437,120
5Apr 29, 2026 13:4333,18948,452,91327,193,0002,014,0002,367,488
6Apr 29, 2026 13:4333,22046,245,73128,226,0001,008,0002,359,296
7Apr 29, 2026 13:4333,23943,188,59427,234,0002,017,0002,359,296
8Apr 29, 2026 13:4333,32948,730,28328,319,0001,011,0002,367,488
9Apr 29, 2026 13:4333,48744,676,88927,505,0001,964,0002,310,144