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:22Yuriy LyfenkoYuriy LyfenkoScore: 39,216Success
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:2238,906119,238,67734,237,61002,195,456
2Jun 26, 2021 20:2238,92562,310,12731,232,0003,022,0002,523,136
3Jun 26, 2021 20:2239,07199,920,39534,382,49402,191,360
4Jun 26, 2021 20:2239,14952,535,54933,438,0001,013,0002,527,232
5Jun 26, 2021 20:2239,15960,217,69433,447,0001,013,0002,392,064
6Jun 26, 2021 20:2239,18292,082,00934,480,52502,183,168
7Jun 26, 2021 20:2239,21661,341,11932,480,0002,030,0002,531,328
8Jun 26, 2021 20:2239,24759,465,89033,522,0001,015,0002,527,232
9Jun 26, 2021 20:2239,29357,583,08432,544,0002,034,0002,523,136
10Jun 26, 2021 20:2239,29759,203,38133,564,0001,017,0002,531,328
11Jun 26, 2021 20:2239,38158,293,62034,655,00002,531,328
12Jun 26, 2021 20:2239,47765,016,74832,697,0002,043,0002,334,720