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 listJun 26, 2021 20:31Yuriy LyfenkoYuriy LyfenkoScore: 33,974Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2021 20:3133,626101,027,46529,590,99602,187,264
2Jun 26, 2021 20:3133,69789,100,85129,653,09302,187,264
3Jun 26, 2021 20:3133,80256,120,91528,721,0001,025,0002,334,720
4Jun 26, 2021 20:3133,82388,538,86729,764,40302,191,360
5Jun 26, 2021 20:3133,97254,586,06026,906,0002,989,0002,334,720
6Jun 26, 2021 20:3133,97356,132,50027,903,0001,993,0002,334,720
7Jun 26, 2021 20:3133,97453,539,62826,908,0002,989,0002,363,392
8Jun 26, 2021 20:3133,98355,526,52527,912,0001,993,0002,523,136
9Jun 26, 2021 20:3134,02557,893,77227,946,0001,996,0002,310,144
10Jun 26, 2021 20:3134,05855,166,30727,973,0001,998,0002,527,232
11Jun 26, 2021 20:3134,08457,690,02627,995,0001,999,0002,531,328
12Jun 26, 2021 20:3134,15956,874,87027,054,0003,006,0002,334,720