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 16, 2026 01:48zielajzielajScore: 3,410Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 16, 2026 01:473,20823,259,0272,823,00002,453,504
2Feb 16, 2026 01:473,22425,540,1312,837,00002,453,504
3Feb 16, 2026 01:473,31521,181,3031,945,000972,0002,445,312
4Feb 16, 2026 01:483,32428,571,1531,950,000975,0002,449,408
5Feb 16, 2026 01:473,32822,006,8761,953,000976,0002,453,504
6Feb 16, 2026 01:483,35621,906,1511,969,000984,0002,277,376
7Feb 16, 2026 01:473,40018,557,7221,995,000997,0002,449,408
8Feb 16, 2026 01:483,40016,084,298997,0001,995,0002,502,656
9Feb 16, 2026 01:483,40718,319,4081,999,000999,0002,445,312
10Feb 16, 2026 01:483,40920,080,0802,000,0001,000,0002,449,408
11Feb 16, 2026 01:473,41024,295,4872,001,0001,000,0002,535,424
12Feb 16, 2026 01:473,41921,439,5552,006,0001,003,0002,457,600
13Feb 16, 2026 01:483,42421,708,6642,009,0001,004,0002,453,504
14Feb 16, 2026 01:473,46422,771,4722,032,0001,016,0002,449,408
15Feb 16, 2026 01:483,48119,909,7432,042,0001,021,0002,281,472
16Feb 16, 2026 01:473,54717,375,7822,081,0001,040,0002,453,504
17Feb 16, 2026 01:473,78020,738,7883,326,00002,453,504
18Feb 16, 2026 01:473,79820,656,4313,342,00002,445,312
19Feb 16, 2026 01:483,82226,268,8643,363,00002,535,424
20Feb 16, 2026 01:483,91120,599,8133,442,00002,277,376
21Feb 16, 2026 01:473,92417,893,6563,453,00002,445,312