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:49apuxbtapuxbtScore: 35,265Success
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:4934,40887,038,91930,278,69602,281,472
2Oct 3, 2023 00:4934,47396,823,29430,335,94002,265,088
3Oct 3, 2023 00:4934,493106,763,01730,353,46402,281,472
4Oct 3, 2023 00:4935,11657,534,53028,909,0001,993,0002,297,856
5Oct 3, 2023 00:4935,15353,548,81929,938,000997,0002,285,568
6Oct 3, 2023 00:4935,17755,713,20728,959,0001,997,0002,490,368
7Oct 3, 2023 00:4935,26557,615,51328,030,0003,003,0002,498,560
8Oct 3, 2023 00:4935,32054,227,97729,077,0002,005,0002,486,272
9Oct 3, 2023 00:4935,33157,765,64229,086,0002,005,0002,490,368
10Oct 3, 2023 00:4935,36953,594,44829,117,0002,008,0002,490,368
11Oct 3, 2023 00:4935,38157,212,53229,127,0002,008,0002,297,856
12Oct 3, 2023 00:4935,39757,950,44829,140,0002,009,0002,486,272