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:59Yuriy LyfenkoYuriy LyfenkoScore: 33,341Success
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:5933,10050,881,33326,115,0003,013,0002,519,040
2Jun 26, 2021 20:5933,14250,231,33826,148,0003,017,0002,523,136
3Jun 26, 2021 20:5933,16488,015,10429,184,31702,187,264
4Jun 26, 2021 20:5933,19759,388,44626,191,0003,022,0002,334,720
5Jun 26, 2021 20:5933,23591,921,72529,246,99602,191,360
6Jun 26, 2021 20:5933,28786,552,19829,292,41602,191,360
7Jun 26, 2021 20:5933,34157,540,59827,317,0002,023,0002,523,136
8Jun 26, 2021 20:5933,35951,152,51928,344,0001,012,0002,334,720
9Jun 26, 2021 20:5933,36155,355,06527,334,0002,024,0002,531,328
10Jun 26, 2021 20:5933,44254,010,74329,429,00002,527,232
11Jun 26, 2021 20:5933,48355,208,24929,465,00002,334,720
12Jun 26, 2021 20:5933,49556,080,16528,460,0001,016,0002,531,328