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 29, 2026 11:20Dominique GarmierDominique GarmierScore: 10,378Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 11:2110,19330,399,7555,980,0002,990,0002,371,584
2Apr 29, 2026 11:2110,20930,741,0306,988,0001,996,0002,367,488
3Apr 29, 2026 11:2110,23923,303,5177,009,0002,002,0002,465,792
4Apr 29, 2026 11:2110,24229,339,0597,010,0002,003,0002,363,392
5Apr 29, 2026 11:2110,37827,357,8416,089,0003,044,0002,363,392
6Apr 29, 2026 11:2110,38626,502,0317,109,0002,031,0002,375,680
7Apr 29, 2026 11:2110,40923,265,9117,125,0002,035,0002,371,584
8Apr 29, 2026 11:2110,41127,664,1767,126,0002,036,0002,457,600
9Apr 29, 2026 11:2110,42932,102,8227,139,0002,039,0002,371,584