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 21, 2026 22:12Dominique GarmierDominique GarmierScore: 12,991Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 21, 2026 22:1212,88027,364,57810,304,0001,030,0002,392,064
2Mar 21, 2026 22:1212,90829,707,26911,359,00002,273,280
3Mar 21, 2026 22:1212,93528,974,69210,349,0001,034,0002,437,120
4Mar 21, 2026 22:1212,98232,053,2159,347,0002,077,0002,437,120
5Mar 21, 2026 22:1212,99126,528,16811,432,00002,273,280
6Mar 21, 2026 22:1213,06731,255,52210,454,0001,045,0002,416,640
7Mar 21, 2026 22:1213,09729,197,37810,478,0001,047,0002,441,216
8Mar 21, 2026 22:1213,15927,987,08910,528,0001,052,0002,260,992
9Mar 21, 2026 22:1213,21839,300,97010,575,0001,057,0002,371,584