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 18, 2021 03:07Yuriy LyfenkoYuriy LyfenkoScore: 59,100Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 18, 2021 05:2858,904112,221,26351,835,30802,215,936
2Jun 18, 2021 05:0959,027104,498,21851,944,08702,220,032
3Jun 18, 2021 03:0759,074112,292,24251,985,34602,224,128
4Jun 18, 2021 05:0959,093109,463,95552,001,82202,207,744
5Jun 18, 2021 05:2859,100110,872,81452,007,92002,228,224
6Jun 18, 2021 03:0759,105117,150,97152,012,11902,228,224
7Jun 18, 2021 05:2859,112111,304,45052,018,61002,224,128
8Jun 18, 2021 03:0759,132108,142,35852,036,42102,224,128
9Jun 18, 2021 05:0959,152117,608,46352,054,10702,244,608