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 24, 2026 02:50zielajzielajScore: 3,197Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 24, 2026 02:503,08517,981,7022,715,00002,416,640
2Feb 24, 2026 02:503,08619,698,6622,716,00002,424,832
3Feb 24, 2026 02:503,11919,674,3442,745,00002,428,928
4Feb 24, 2026 02:503,13317,454,2912,757,00002,424,832
5Feb 24, 2026 02:503,16019,443,1562,781,00002,420,736
6Feb 24, 2026 02:503,19118,738,5512,808,00002,428,928
7Feb 24, 2026 02:503,19722,788,2882,813,00002,420,736
8Feb 24, 2026 02:503,31719,638,5322,919,00002,416,640
9Feb 24, 2026 02:503,32216,318,2541,949,000974,0002,510,848
10Feb 24, 2026 02:503,47217,646,8352,037,0001,018,0002,277,376
11Feb 24, 2026 02:503,57720,363,5922,099,0001,049,0002,433,024
12Feb 24, 2026 02:503,62420,776,9612,126,0001,063,0002,420,736