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:18TudyMTudyMScore: 36,079Success
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:1936,03052,671,21230,685,0001,022,0002,371,584
2Apr 29, 2026 13:1936,04750,511,95630,699,0001,023,0002,367,488
3Apr 29, 2026 13:1936,05245,951,22830,703,0001,023,0002,359,296
4Apr 29, 2026 13:1936,06049,145,85830,710,0001,023,0002,367,488
5Apr 29, 2026 13:1936,07953,540,75930,726,0001,024,0002,371,584
6Apr 29, 2026 13:1936,10349,028,23630,747,0001,024,0002,375,680
7Apr 29, 2026 13:1936,10949,413,66230,751,0001,025,0002,375,680
8Apr 29, 2026 13:1936,14648,434,37630,815,000994,0002,379,776
9Apr 29, 2026 13:1936,19050,881,37829,858,0001,990,0002,371,584