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 23:57apuxbtapuxbtScore: 24,738Success
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 23:5724,48447,692,77120,520,0001,026,0002,293,760
2Oct 3, 2023 23:5724,50943,711,46520,541,0001,027,0002,293,760
3Oct 3, 2023 23:5724,53946,150,29920,566,0001,028,0002,293,760
4Oct 3, 2023 23:5724,61043,442,85420,626,0001,031,0002,342,912
5Oct 3, 2023 23:5724,61840,915,27820,633,0001,031,0002,293,760
6Oct 3, 2023 23:5724,68148,363,97020,685,0001,034,0002,342,912
7Oct 3, 2023 23:5724,73851,802,57719,790,0001,979,0002,351,104
8Oct 3, 2023 23:5724,89551,415,55819,917,0001,991,0002,351,104
9Oct 3, 2023 23:5724,95346,701,04318,965,0002,994,0002,347,008
10Oct 3, 2023 23:5725,42086,962,12322,369,18202,310,144
11Oct 3, 2023 23:5725,42392,591,23722,372,51202,187,264
12Oct 3, 2023 23:5725,53096,798,06322,466,31902,191,360