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 27, 2021 04:50Yuriy LyfenkoYuriy LyfenkoScore: 51,602Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 04:5051,39572,252,69643,218,0002,010,0002,269,184
2Jun 27, 2021 04:5051,41674,399,86844,241,0001,005,0002,269,184
3Jun 27, 2021 04:5051,48068,163,22045,302,00002,375,680
4Jun 27, 2021 04:5051,48165,682,14845,303,00002,375,680
5Jun 27, 2021 04:5051,57872,373,99344,381,0001,008,0002,269,184
6Jun 27, 2021 04:5051,58271,037,91745,392,00002,269,184
7Jun 27, 2021 04:5051,60269,530,43545,410,00002,371,584
8Jun 27, 2021 04:5051,91172,521,13244,667,0001,015,0002,367,488
9Jun 27, 2021 04:5051,93470,402,03645,702,00002,375,680
10Jun 27, 2021 04:5052,566107,843,74346,257,72102,220,032
11Jun 27, 2021 04:5052,601118,692,51746,289,17502,228,224
12Jun 27, 2021 04:5052,800117,509,67146,464,32602,224,128