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 01:37zielajzielajScore: 3,310Success
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 01:373,09523,036,1252,724,00002,420,736
2Feb 24, 2026 01:393,10818,695,7582,735,00002,420,736
3Feb 24, 2026 01:383,10918,328,9492,736,00002,424,832
4Feb 24, 2026 01:383,11420,350,8412,740,00002,424,832
5Feb 24, 2026 01:393,11818,762,3822,744,00002,420,736
6Feb 24, 2026 01:383,12215,318,4972,747,00002,277,376
7Feb 24, 2026 01:393,12819,128,0592,753,00002,428,928
8Feb 24, 2026 01:373,14019,619,2152,763,00002,428,928
9Feb 24, 2026 01:393,20224,231,3542,818,00002,428,928
10Feb 24, 2026 01:373,31018,463,7061,942,000971,0002,428,928
11Feb 24, 2026 01:393,32021,815,6841,948,000974,0002,510,848
12Feb 24, 2026 01:383,32523,352,4902,926,00002,433,024
13Feb 24, 2026 01:383,32718,691,1031,952,000976,0002,428,928
14Feb 24, 2026 01:373,32716,823,0981,952,000976,0002,535,424
15Feb 24, 2026 01:383,57419,434,0022,097,0001,048,0002,416,640
16Feb 24, 2026 01:393,59719,728,7662,110,0001,055,0002,428,928
17Feb 24, 2026 01:373,60723,204,6092,116,0001,058,0002,428,928
18Feb 24, 2026 01:373,64518,939,1862,139,0001,069,0002,428,928