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 22, 2024 16:19Huy Duc LeHuy Duc LeScore: 30,158Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2024 16:1929,87648,152,65825,280,0001,011,0002,490,368
2Feb 22, 2024 16:1930,07449,737,37925,448,0001,017,0002,281,472
3Feb 22, 2024 16:1930,09250,763,33325,463,0001,018,0002,281,472
4Feb 22, 2024 16:1930,10752,581,79925,475,0001,019,0002,281,472
5Feb 22, 2024 16:1930,13450,620,64025,499,0001,019,0002,310,144
6Feb 22, 2024 16:1930,14849,052,83725,510,0001,020,0002,494,464
7Feb 22, 2024 16:1930,15855,005,20825,519,0001,020,0002,281,472
8Feb 22, 2024 16:1930,20149,603,54425,555,0001,022,0002,498,560
9Feb 22, 2024 16:1930,22053,711,53625,572,0001,022,0002,281,472
10Feb 22, 2024 16:1930,345104,637,25126,703,21902,228,224
11Feb 22, 2024 16:1930,39891,243,13526,750,36102,215,936
12Feb 22, 2024 16:1930,55695,625,91426,889,20302,207,744