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 12:08Tomislav TunkovicTomislav TunkovicScore: 3,122Success
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 12:103,11210,786,8482,739,000020,480
2Aug 15, 2026 12:103,11210,674,0722,739,000020,480
3Aug 15, 2026 12:103,11910,836,9922,745,000020,480
4Aug 15, 2026 12:103,12110,997,8022,747,000020,480
5Aug 15, 2026 12:103,12210,823,7242,748,000020,480
6Aug 15, 2026 12:103,12310,844,9562,749,000020,480
7Aug 15, 2026 12:103,12710,806,6402,752,000020,480
8Aug 15, 2026 12:103,13210,819,7842,757,000020,480
9Aug 15, 2026 12:103,13510,844,0972,759,000020,480