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 listApr 27, 2026 15:07Charles CabergsCharles CabergsScore: 21,581Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 15:0821,46537,136,95516,902,0001,988,0002,543,616
2Apr 27, 2026 15:0821,46735,150,84516,903,0001,988,0002,535,424
3Apr 27, 2026 15:0821,47836,343,32916,912,0001,989,0002,310,144
4Apr 27, 2026 15:0821,49534,368,34915,930,0002,986,0002,306,048
5Apr 27, 2026 15:0821,58138,549,93615,994,0002,998,0002,539,520
6Apr 27, 2026 15:0821,61837,896,80317,022,0002,002,0002,539,520
7Apr 27, 2026 15:0821,70338,103,78417,089,0002,010,0002,543,616
8Apr 27, 2026 15:0821,72136,634,40816,097,0003,018,0002,535,424
9Apr 27, 2026 15:0821,94838,600,52219,315,00002,543,616