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 listOct 2, 2023 18:51apuxbtapuxbtScore: 46,477Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 2, 2023 18:5146,28967,521,32140,734,00002,355,200
2Oct 2, 2023 18:5146,29268,388,11739,719,0001,018,0002,355,200
3Oct 2, 2023 18:5146,45266,505,76738,884,0001,994,0002,269,184
4Oct 2, 2023 18:5146,45565,442,86738,886,0001,994,0002,375,680
5Oct 2, 2023 18:5146,45568,841,49638,886,0001,994,0002,510,848
6Oct 2, 2023 18:5146,46369,620,61438,893,0001,994,0002,375,680
7Oct 2, 2023 18:5146,47764,945,46340,900,00002,355,200
8Oct 2, 2023 18:5146,61969,194,54239,024,0002,001,0002,351,104
9Oct 2, 2023 18:5146,64267,637,83839,043,0002,002,0002,359,296
10Oct 2, 2023 18:5147,827101,601,70042,087,82002,240,512
11Oct 2, 2023 18:5147,975106,975,69542,218,36602,244,608
12Oct 2, 2023 18:5148,311113,441,73542,513,52302,240,512