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 20, 2021 23:45Yuriy LyfenkoYuriy LyfenkoScore: 56,989Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2021 23:4542,33399,646,63637,252,63502,220,032
2Jun 20, 2021 23:4542,487107,676,17337,388,73802,220,032
3Jun 20, 2021 23:4542,553103,710,96637,446,75602,220,032
4Jun 20, 2021 23:4556,87677,206,97848,049,0002,002,0002,269,184
5Jun 20, 2021 23:4556,95077,653,31049,114,0001,002,0002,269,184
6Jun 20, 2021 23:4556,95881,844,80048,119,0002,004,0002,269,184
7Jun 20, 2021 23:4556,98974,573,35148,144,0002,006,0002,269,184
8Jun 20, 2021 23:4557,05175,320,33749,201,0001,004,0002,269,184
9Jun 20, 2021 23:4557,07780,355,11948,219,0002,009,0002,269,184
10Jun 20, 2021 23:4557,10777,648,04848,244,0002,010,0002,371,584
11Jun 20, 2021 23:4557,10774,207,20148,244,0002,010,0002,371,584
12Jun 20, 2021 23:4557,12871,361,38349,268,0001,005,0002,375,680