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 6, 2026 21:21vahookvahookScore: 3,450Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 21:213,38619,944,431993,0001,987,0002,277,376
2Feb 6, 2026 21:213,39718,302,148996,0001,993,0002,490,368
3Feb 6, 2026 21:213,42418,671,8181,004,0002,009,0002,277,376
4Feb 6, 2026 21:213,43024,628,6101,006,0002,012,0002,277,376
5Feb 6, 2026 21:213,43020,037,3461,006,0002,012,0002,277,376
6Feb 6, 2026 21:213,43821,206,2611,008,0002,017,0002,494,464
7Feb 6, 2026 21:213,45018,494,2551,012,0002,024,0002,494,464
8Feb 6, 2026 21:213,45318,830,7321,013,0002,026,0002,498,560
9Feb 6, 2026 21:213,45316,890,3171,013,0002,026,0002,277,376
10Feb 6, 2026 21:213,47523,118,5721,019,0002,039,0002,502,656
11Feb 6, 2026 21:213,50121,898,6451,027,0002,054,0002,494,464
12Feb 6, 2026 21:213,54718,719,9601,040,0002,081,0002,498,560