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 18, 2026 04:03zielajzielajScore: 3,342Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 18, 2026 04:033,11423,076,0682,740,00002,424,832
2Feb 18, 2026 04:053,15621,382,4422,777,00002,437,120
3Feb 18, 2026 04:053,16323,605,8472,783,00002,531,328
4Feb 18, 2026 04:013,16922,366,9482,789,00002,531,328
5Feb 18, 2026 04:023,32418,440,8712,925,00002,437,120
6Feb 18, 2026 04:033,32723,845,9981,952,000976,0002,437,120
7Feb 18, 2026 04:013,33117,085,2091,954,000977,0002,441,216
8Feb 18, 2026 04:033,34224,450,6762,941,00002,437,120
9Feb 18, 2026 04:023,46719,145,9552,034,0001,017,0002,433,024
10Feb 18, 2026 04:013,47818,639,6342,041,0001,020,0002,437,120
11Feb 18, 2026 04:023,66818,879,3892,152,0001,076,0002,437,120
12Feb 18, 2026 04:053,68225,880,6353,240,00002,277,376
13Feb 18, 2026 04:033,68321,417,8912,161,0001,080,0002,433,024
14Feb 18, 2026 04:033,71316,449,7812,178,0001,089,0002,437,120
15Feb 18, 2026 04:033,80219,018,8213,346,00002,428,928