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 listFeb 4, 2026 16:54vahookvahookScore: 3,642Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 16:533,56420,688,8561,045,0002,091,0002,277,376
2Feb 4, 2026 16:523,57020,448,1941,047,0002,095,0002,502,656
3Feb 4, 2026 16:533,57020,081,8681,047,0002,095,0002,494,464
4Feb 4, 2026 16:523,57315,854,2971,048,0002,096,0002,490,368
5Feb 4, 2026 16:533,58320,396,4991,051,0002,102,0002,498,560
6Feb 4, 2026 16:533,59019,213,4991,053,0002,106,0002,498,560
7Feb 4, 2026 16:523,59117,878,2041,053,0002,107,0002,494,464
8Feb 4, 2026 16:523,59315,324,8041,054,0002,108,0002,494,464
9Feb 4, 2026 16:523,59420,656,1941,054,0002,109,0002,502,656
10Feb 4, 2026 16:533,59420,446,3601,054,0002,109,0002,494,464
11Feb 4, 2026 16:533,60717,990,8111,058,0002,116,0002,490,368
12Feb 4, 2026 16:523,61418,559,5201,060,0002,120,0002,494,464
13Feb 4, 2026 16:533,64217,090,5531,068,0002,137,0002,502,656
14Feb 4, 2026 16:533,66315,821,3941,074,0002,149,0002,494,464
15Feb 4, 2026 16:533,66522,787,7291,075,0002,150,0002,494,464
16Feb 4, 2026 16:543,66521,851,4501,075,0002,150,0002,494,464
17Feb 4, 2026 16:523,66624,669,7931,075,0002,151,0002,502,656
18Feb 4, 2026 16:533,67819,378,9582,158,0001,079,0002,490,368
19Feb 4, 2026 16:543,68019,809,2581,079,0002,159,0002,490,368
20Feb 4, 2026 16:533,68221,175,5732,160,0001,080,0002,494,464
21Feb 4, 2026 16:523,69218,150,7902,166,0001,083,0002,498,560
22Feb 4, 2026 16:523,71620,259,6362,180,0001,090,0002,498,560
23Feb 4, 2026 16:533,77019,495,2612,212,0001,106,0002,535,424
24Feb 4, 2026 16:543,83320,478,9512,249,0001,124,0002,498,560