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 listJul 19, 2025 18:50vahookvahookScore: 11,531Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 19, 2025 18:5011,45024,774,2929,069,0001,007,0002,498,560
2Jul 19, 2025 18:5011,49025,081,3889,100,0001,011,0002,273,280
3Jul 19, 2025 18:5011,50624,837,5919,113,0001,012,0002,531,328
4Jul 19, 2025 18:5011,51627,024,0869,121,0001,013,0002,273,280
5Jul 19, 2025 18:5011,53125,694,4869,133,0001,014,0002,531,328
6Jul 19, 2025 18:5011,56027,143,5349,156,0001,017,0002,494,464
7Jul 19, 2025 18:5011,62229,664,60810,227,00002,494,464
8Jul 19, 2025 18:5011,64530,336,5709,224,0001,024,0002,490,368
9Jul 19, 2025 18:5011,68325,834,6369,253,0001,028,0002,273,280