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 21:23Yuriy LyfenkoYuriy LyfenkoScore: 44,474Success
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 21:2342,931121,934,72837,778,87702,224,128
2Jun 26, 2021 21:2342,948105,117,18237,793,86702,224,128
3Jun 26, 2021 21:2343,03298,317,90137,867,93302,220,032
4Jun 26, 2021 21:2344,27270,378,82937,961,000998,0002,269,184
5Jun 26, 2021 21:2344,38067,998,36137,052,0002,002,0002,269,184
6Jun 26, 2021 21:2344,38467,248,38238,057,0001,001,0002,269,184
7Jun 26, 2021 21:2344,47464,508,03537,130,0002,007,0002,265,088
8Jun 26, 2021 21:2344,59563,549,95138,238,0001,006,0002,269,184
9Jun 26, 2021 21:2344,61970,985,65637,252,0002,013,0002,379,776
10Jun 26, 2021 21:2344,64763,247,20137,275,0002,014,0002,269,184
11Jun 26, 2021 21:2344,68168,896,04139,319,00002,269,184
12Jun 26, 2021 21:2344,69271,948,36737,363,0001,966,0002,269,184