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 listJan 29, 2022 21:32evgenikwtevgenikwtScore: 109,103Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 29, 2022 21:34108,883150,599,57295,817,24302,248,704
2Jan 29, 2022 21:32108,972167,552,56295,895,79502,240,512
3Jan 29, 2022 21:34108,977153,952,82995,900,02002,236,416
4Jan 29, 2022 21:34109,103157,447,45696,010,75402,240,512
5Jan 29, 2022 21:32109,336151,728,98596,215,94602,232,320
6Jan 29, 2022 21:32109,432158,070,56196,299,89302,236,416