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 listFeb 3, 2026 23:47vahookvahookScore: 3,965Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 3, 2026 23:473,93418,957,5002,308,0001,154,0002,277,376
2Feb 3, 2026 23:473,94517,734,7062,315,0001,157,0002,277,376
3Feb 3, 2026 23:473,94921,960,3552,317,0001,158,0002,277,376
4Feb 3, 2026 23:473,95520,075,8512,320,0001,160,0002,277,376
5Feb 3, 2026 23:473,96516,841,9262,326,0001,163,0002,535,424
6Feb 3, 2026 23:473,98922,768,1712,340,0001,170,0002,277,376
7Feb 3, 2026 23:473,98918,355,4522,340,0001,170,0002,494,464
8Feb 3, 2026 23:474,03822,511,9832,369,0001,184,0002,490,368
9Feb 3, 2026 23:474,06020,654,3952,382,0001,191,0002,494,464