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 16, 2026 23:11Tomislav TunkovicTomislav TunkovicScore: 4,039Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 17, 2026 04:134,02913,162,4533,546,000024,576
2Aug 17, 2026 04:134,03613,219,5473,552,000024,576
3Aug 17, 2026 04:134,03613,259,3493,552,000024,576
4Aug 17, 2026 04:134,03913,196,4363,555,000024,576
5Aug 17, 2026 04:134,03913,161,5253,555,000024,576
6Aug 17, 2026 04:134,04715,217,5353,562,000024,576
7Aug 17, 2026 04:134,05113,213,0923,565,000024,576
8Aug 17, 2026 04:134,05213,215,2843,566,000024,576
9Aug 17, 2026 04:134,06913,170,7873,581,000024,576