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 14, 2026 13:55limanjun99limanjun99Score: 18,428Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2026 13:5517,78132,914,72513,561,0002,086,0002,363,392
2Apr 14, 2026 13:5518,27634,475,05214,073,0002,010,0002,445,312
3Apr 14, 2026 15:0018,36642,728,71314,142,0002,020,0002,449,408
4Apr 14, 2026 15:0018,41834,184,29914,182,0002,026,0002,486,272
5Apr 14, 2026 13:5518,41936,607,85313,170,0003,039,0002,269,184
6Apr 14, 2026 13:5518,42432,893,57214,187,0002,026,0002,445,312
7Apr 14, 2026 13:5518,42835,159,50613,177,0003,040,0002,359,296
8Apr 14, 2026 13:5518,43037,023,50214,191,0002,027,0002,445,312
9Apr 14, 2026 13:5518,44140,577,09515,214,0001,014,0002,437,120
10Apr 14, 2026 13:5518,47832,049,37314,229,0002,032,0002,494,464
11Apr 14, 2026 13:5518,49737,254,83114,243,0002,034,0002,494,464
12Apr 14, 2026 15:0018,54537,587,62414,280,0002,040,0002,437,120