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 3, 2023 00:48apuxbtapuxbtScore: 35,334Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 3, 2023 00:4834,30098,290,62530,184,04802,269,184
2Oct 3, 2023 00:4834,55292,113,94730,405,88502,285,568
3Oct 3, 2023 00:4834,61289,116,29430,458,38202,273,280
4Oct 3, 2023 00:4835,11459,066,42727,910,0002,990,0002,494,464
5Oct 3, 2023 00:4835,18955,749,11029,968,000998,0002,297,856
6Oct 3, 2023 00:4835,27659,854,13529,041,0002,002,0002,392,064
7Oct 3, 2023 00:4835,33453,913,98128,085,0003,009,0002,490,368
8Oct 3, 2023 00:4835,37554,098,26328,118,0003,012,0002,420,736
9Oct 3, 2023 00:4835,37857,529,84929,125,0002,008,0002,486,272
10Oct 3, 2023 00:4835,42857,744,33029,166,0002,011,0002,486,272
11Oct 3, 2023 00:4835,46358,815,73329,194,0002,013,0002,482,176
12Oct 3, 2023 00:4835,71354,136,31830,414,0001,013,0002,486,272