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 listJan 13, 2026 22:26vahookvahookScore: 4,825Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 13, 2026 22:264,73424,791,9993,125,0001,041,0002,498,560
2Jan 13, 2026 22:264,79324,089,4422,109,0002,109,0002,490,368
3Jan 13, 2026 22:264,80021,226,3232,112,0002,112,0002,277,376
4Jan 13, 2026 22:264,80218,940,1442,113,0002,113,0002,281,472
5Jan 13, 2026 22:264,82518,063,3043,185,0001,061,0002,277,376
6Jan 13, 2026 22:264,83923,965,6903,194,0001,064,0002,281,472
7Jan 13, 2026 22:264,84320,095,8333,197,0001,065,0002,494,464
8Jan 13, 2026 22:264,85123,561,7073,202,0001,067,0002,277,376
9Jan 13, 2026 22:264,85523,950,6043,204,0001,068,0002,502,656