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 listDec 28, 2022 03:32Yuriy LyfenkoYuriy LyfenkoScore: 38,805Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 03:3230,90495,928,62627,195,79602,215,936
2Dec 28, 2022 03:3230,94598,698,55827,231,99902,207,744
3Dec 28, 2022 03:3231,001102,122,29427,280,88902,236,416
4Dec 28, 2022 03:3238,67363,317,65432,031,0002,001,0002,379,776
5Dec 28, 2022 03:3238,77764,961,01132,117,0002,007,0002,269,184
6Dec 28, 2022 03:3238,78259,497,92733,125,0001,003,0002,269,184
7Dec 28, 2022 03:3238,80563,825,44632,140,0002,008,0002,269,184
8Dec 28, 2022 03:3238,81559,764,24232,148,0002,009,0002,269,184
9Dec 28, 2022 03:3238,84359,639,00432,172,0002,010,0002,269,184
10Dec 28, 2022 03:3238,84762,730,31332,175,0002,010,0002,371,584
11Dec 28, 2022 03:3238,88459,932,86234,218,00002,269,184
12Dec 28, 2022 03:3238,97254,217,26234,295,00002,269,184