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 listFeb 6, 2026 04:27zielajzielajScore: 3,484Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 04:283,33418,080,4201,467,0001,467,0002,293,760
2Feb 6, 2026 04:293,40920,661,0731,000,0002,000,0002,486,272
3Feb 6, 2026 04:283,45820,191,6322,029,0001,014,0002,379,776
4Feb 6, 2026 04:283,46518,203,2522,033,0001,016,0002,449,408
5Feb 6, 2026 04:273,48420,472,2942,044,0001,022,0002,531,328
6Feb 6, 2026 04:293,48822,995,3532,046,0001,023,0002,297,856
7Feb 6, 2026 04:273,50522,913,6922,056,0001,028,0002,289,664
8Feb 6, 2026 04:273,55618,922,8781,043,0002,086,0002,293,760
9Feb 6, 2026 04:294,44117,010,3362,931,000977,0002,293,760