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 6, 2026 04:32zielajzielajScore: 3,441Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 04:333,32719,121,9681,952,000976,0002,383,872
2Feb 6, 2026 04:333,34524,757,3981,963,000981,0002,273,280
3Feb 6, 2026 04:333,35516,824,4361,968,000984,0002,387,968
4Feb 6, 2026 04:323,36623,588,2741,975,000987,0002,387,968
5Feb 6, 2026 04:333,41023,217,7032,001,0001,000,0002,277,376
6Feb 6, 2026 04:333,42315,951,2752,008,0001,004,0002,387,968
7Feb 6, 2026 04:323,44118,384,5542,019,0001,009,0002,375,680
8Feb 6, 2026 04:333,44318,845,6192,020,0001,010,0002,383,872
9Feb 6, 2026 04:323,48221,687,4822,043,0001,021,0002,392,064
10Feb 6, 2026 04:333,48423,995,5341,022,0002,044,0002,383,872
11Feb 6, 2026 04:333,53618,701,9602,075,0001,037,0002,387,968
12Feb 6, 2026 04:334,30818,024,3733,791,00002,371,584