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 14, 2026 21:16Tomislav TunkovicTomislav TunkovicScore: 3,900Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 14, 2026 21:213,82211,477,0643,364,00002,113,536
2Aug 14, 2026 21:213,88412,128,1003,418,00002,113,536
3Aug 14, 2026 21:213,88412,101,3323,418,00002,113,536
4Aug 14, 2026 21:213,89811,306,2983,431,00002,113,536
5Aug 14, 2026 21:213,90011,314,3663,432,00002,113,536
6Aug 14, 2026 21:213,90011,476,8283,432,00002,113,536
7Aug 14, 2026 21:213,90311,395,4173,435,00002,113,536
8Aug 14, 2026 21:213,90511,317,2443,437,00002,113,536
9Aug 14, 2026 21:213,91811,483,4543,448,00002,113,536