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 4, 2023 12:25Robert BurkeRobert BurkeScore: 21,748Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 4, 2023 12:2518,28051,374,80716,086,04802,232,320
2Oct 4, 2023 12:2518,28685,676,60416,091,89602,228,224
3Oct 4, 2023 12:2518,37474,753,32416,168,99502,232,320
4Oct 4, 2023 12:2521,66739,719,51718,064,0001,003,0002,396,160
5Oct 4, 2023 12:2521,72746,467,15017,108,0002,012,0002,535,424
6Oct 4, 2023 12:2521,73244,074,86317,111,0002,013,0002,387,968
7Oct 4, 2023 12:2521,74844,121,88918,131,0001,007,0002,535,424
8Oct 4, 2023 12:2521,75839,037,81918,140,0001,007,0002,535,424
9Oct 4, 2023 12:2521,76040,663,99518,142,0001,007,0002,392,064
10Oct 4, 2023 12:2521,79746,048,14518,172,0001,009,0002,273,280
11Oct 4, 2023 12:2521,85741,297,71618,222,0001,012,0002,392,064
12Oct 4, 2023 12:2521,89751,486,13218,255,0001,014,0002,510,848