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 listMar 23, 2026 07:34Dominique GarmierDominique GarmierScore: 11,799Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 23, 2026 07:3411,70227,388,24910,298,00002,433,024
2Mar 23, 2026 07:3411,74429,033,09610,335,00002,498,560
3Mar 23, 2026 07:3411,74534,286,1369,303,0001,033,0002,433,024
4Mar 23, 2026 07:3411,79433,559,38210,379,00002,449,408
5Mar 23, 2026 07:3411,79931,106,27010,383,00002,342,912
6Mar 23, 2026 07:3411,85730,844,4909,391,0001,043,0002,441,216
7Mar 23, 2026 07:3411,90231,978,3189,427,0001,047,0002,342,912
8Mar 23, 2026 07:3411,93632,796,4359,454,0001,050,0002,486,272
9Mar 23, 2026 07:3411,96426,431,8458,423,0002,105,0002,433,024