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:29zielajzielajScore: 3,399Success
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:303,31119,511,9591,943,000971,0002,465,792
2Feb 16, 2026 01:343,31523,314,0701,945,000972,0002,449,408
3Feb 16, 2026 01:303,31818,016,8391,947,000973,0002,449,408
4Feb 16, 2026 01:303,34223,448,0011,961,000980,0002,277,376
5Feb 16, 2026 01:293,34419,948,8182,943,00002,461,696
6Feb 16, 2026 01:303,37823,582,5161,982,000991,0002,449,408
7Feb 16, 2026 01:343,39024,563,5621,989,000994,0002,457,600
8Feb 16, 2026 01:313,39018,634,965994,0001,989,0002,449,408
9Feb 16, 2026 01:293,39219,151,6561,990,000995,0002,449,408
10Feb 16, 2026 01:313,39924,365,3781,994,000997,0002,445,312
11Feb 16, 2026 01:293,40719,877,3111,999,000999,0002,531,328
12Feb 16, 2026 01:303,41420,934,8782,003,0001,001,0002,449,408
13Feb 16, 2026 01:293,42024,885,3432,007,0001,003,0002,449,408
14Feb 16, 2026 01:293,42323,432,0522,008,0001,004,0002,453,504
15Feb 16, 2026 01:303,44421,891,2122,021,0001,010,0002,453,504
16Feb 16, 2026 01:293,45521,196,3732,027,0001,013,0002,453,504
17Feb 16, 2026 01:313,55020,671,9122,083,0001,041,0002,277,376
18Feb 16, 2026 01:343,76117,276,3833,310,00002,449,408