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 4, 2026 15:52vahookvahookScore: 3,700Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 15:523,59819,578,6091,055,0002,111,0002,494,464
2Feb 4, 2026 15:523,60017,783,4071,056,0002,112,0002,494,464
3Feb 4, 2026 15:523,60123,205,7961,056,0002,113,0002,494,464
4Feb 4, 2026 15:523,69219,159,5402,166,0001,083,0002,277,376
5Feb 4, 2026 15:523,70018,842,1892,171,0001,085,0002,494,464
6Feb 4, 2026 15:523,70919,152,7202,176,0001,088,0002,277,376
7Feb 4, 2026 15:523,71426,919,2882,179,0001,089,0002,482,176
8Feb 4, 2026 15:523,71921,504,9532,182,0001,091,0002,277,376
9Feb 4, 2026 15:523,87717,352,2172,275,0001,137,0002,498,560