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 13, 2024 08:56Ivan BessonovIvan BessonovScore: 35,366Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2024 08:5631,89487,946,17528,066,64802,256,896
2May 13, 2024 08:5631,98490,778,85328,145,82002,265,088
3May 13, 2024 08:5631,98695,560,01728,147,57502,260,992
4May 13, 2024 08:5635,27353,715,43629,038,0002,002,0002,289,664
5May 13, 2024 08:5635,35057,288,95630,105,0001,003,0002,273,280
6May 13, 2024 08:5635,35757,544,55930,111,0001,003,0002,277,376
7May 13, 2024 08:5635,36656,628,52530,119,0001,003,0002,281,472
8May 13, 2024 08:5635,36854,520,99629,116,0002,008,0002,289,664
9May 13, 2024 08:5635,40754,968,89330,153,0001,005,0002,523,136
10May 13, 2024 08:5635,45551,814,11930,194,0001,006,0002,269,184
11May 13, 2024 08:5635,47652,709,80130,212,0001,007,0002,289,664
12May 13, 2024 08:5635,52454,893,03430,253,0001,008,0002,273,280