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 listApr 20, 2026 22:29Charles CabergsCharles CabergsScore: 26,732Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 22:2926,61945,217,88522,407,0001,018,0002,277,376
2Apr 20, 2026 22:2926,66146,068,97521,422,0002,040,0002,408,448
3Apr 20, 2026 22:2926,68146,771,33422,460,0001,020,0002,400,256
4Apr 20, 2026 22:2926,72142,592,54422,493,0001,022,0002,416,640
5Apr 20, 2026 22:2926,73248,646,13123,525,00002,416,640
6Apr 20, 2026 22:2926,73246,594,59522,503,0001,022,0002,396,160
7Apr 20, 2026 22:2926,80748,425,01921,540,0002,051,0002,412,544
8Apr 20, 2026 22:2926,87050,173,37522,618,0001,028,0002,281,472
9Apr 20, 2026 22:2927,85037,089,22122,466,0002,042,0002,281,472