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 listJan 20, 2026 13:59Johan SannemoJohan SannemoScore: 11,092Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 13:5510,92525,061,8427,478,0002,136,0002,289,664
2Jan 20, 2026 13:5510,94926,468,9478,565,0001,070,0002,498,560
3Jan 20, 2026 13:5510,96734,366,4818,579,0001,072,0002,494,464
4Jan 20, 2026 13:5510,99126,872,5137,523,0002,149,0002,486,272
5Jan 20, 2026 13:5511,02229,572,6647,544,0002,155,0002,289,664
6Jan 20, 2026 13:5511,07628,076,8427,581,0002,166,0002,498,560
7Jan 20, 2026 13:5911,09230,836,5078,677,0001,084,0002,289,664
8Jan 20, 2026 13:5511,12725,709,6907,616,0002,176,0002,285,568
9Jan 20, 2026 13:5911,14725,425,2439,809,00002,494,464
10Jan 20, 2026 13:5511,26430,187,1747,930,0001,982,0002,285,568
11Jan 20, 2026 13:5511,26729,578,9218,924,000991,0002,285,568
12Jan 20, 2026 13:5911,26927,689,0338,926,000991,0002,490,368