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 31, 2026 01:14Tomislav TunkovicTomislav TunkovicScore: 2,688Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 31, 2026 01:272,68010,305,1532,359,000020,480
2Aug 31, 2026 01:272,68410,242,9242,362,000020,480
3Aug 31, 2026 01:272,68410,296,6402,362,000020,480
4Aug 31, 2026 01:272,68610,339,6602,364,000020,480
5Aug 31, 2026 01:272,68810,279,7812,366,000020,480
6Aug 31, 2026 01:272,69310,251,3372,370,000020,480
7Aug 31, 2026 01:272,69410,313,2082,371,000020,480
8Aug 31, 2026 01:272,70010,262,7412,376,000020,480
9Aug 31, 2026 01:272,71310,383,2582,388,000020,480