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 listMay 17, 2024 11:25Ivan BessonovIvan BessonovScore: 23,344Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 11:2523,18442,590,35719,382,0001,020,0002,371,584
2May 17, 2024 11:2523,24142,376,50420,452,00002,375,680
3May 17, 2024 11:2523,25745,092,83219,443,0001,023,0002,289,664
4May 17, 2024 11:2523,26642,768,92919,451,0001,023,0002,265,088
5May 17, 2024 11:2523,26742,678,15319,452,0001,023,0002,289,664
6May 17, 2024 11:2523,34143,270,77020,540,00002,269,184
7May 17, 2024 11:2523,34446,203,53419,516,0001,027,0002,379,776
8May 17, 2024 11:2523,42243,774,48819,581,0001,030,0002,523,136
9May 17, 2024 11:2523,56552,753,40019,701,0001,036,0002,519,040
10May 17, 2024 11:2523,77792,306,67920,924,16002,248,704
11May 17, 2024 11:2523,79188,686,76620,935,99002,248,704
12May 17, 2024 11:2523,84381,781,43320,981,76102,248,704