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 listMar 12, 2025 00:54k11ik11iScore: 82,749Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 12, 2025 00:4082,41399,561,75371,516,0001,007,0002,289,664
2Mar 12, 2025 00:4082,41794,200,75471,520,0001,007,0002,273,280
3Mar 12, 2025 00:4082,591101,540,00972,680,00002,289,664
4Mar 12, 2025 00:4082,62399,790,89071,699,0001,009,0002,289,664
5Mar 12, 2025 00:4082,65797,639,92872,738,00002,289,664
6Mar 12, 2025 00:4082,66898,215,16271,738,0001,010,0002,289,664
7Mar 12, 2025 00:5482,749100,692,25172,819,00002,289,664
8Mar 12, 2025 00:4082,783100,371,03570,854,0001,995,0002,273,280
9Mar 12, 2025 00:5482,794102,477,51771,861,000998,0002,289,664
10Mar 12, 2025 00:4082,817103,250,72571,881,000998,0002,289,664
11Mar 12, 2025 00:5482,817104,425,48470,883,0001,996,0002,289,664
12Mar 12, 2025 00:4082,92498,811,88171,974,000999,0002,527,232