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 30, 2026 13:14olliecrowolliecrowScore: 12,425Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 13:1512,33828,634,3398,884,0001,974,0002,449,408
2Apr 30, 2026 13:1512,35328,571,1198,895,0001,976,0002,457,600
3Apr 30, 2026 13:1512,42228,565,2728,945,0001,987,0002,441,216
4Apr 30, 2026 13:1512,42226,581,9967,653,0003,279,0002,465,792
5Apr 30, 2026 13:1512,42527,858,1397,952,0002,982,0002,457,600
6Apr 30, 2026 13:1512,43524,203,6818,954,0001,989,0002,519,040
7Apr 30, 2026 13:1512,44029,784,5488,958,0001,990,0002,461,696
8Apr 30, 2026 13:1512,45028,416,2638,964,0001,992,0002,424,832
9Apr 30, 2026 13:1512,46329,224,1908,974,0001,994,0002,457,600