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 19:11apuxbtapuxbtScore: 31,811Success
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 19:1131,36492,266,76227,600,07102,244,608
2Oct 2, 2023 19:1131,476105,080,92527,699,23102,211,840
3Oct 2, 2023 19:1131,49995,117,13627,719,41602,248,704
4Oct 2, 2023 19:1131,72856,144,21024,930,0002,991,0002,400,256
5Oct 2, 2023 19:1131,77251,796,93324,964,0002,995,0002,523,136
6Oct 2, 2023 19:1131,81051,488,84724,994,0002,999,0002,396,160
7Oct 2, 2023 19:1131,81153,091,87823,995,0003,999,0002,273,280
8Oct 2, 2023 19:1131,83648,126,38626,015,0002,001,0002,514,944
9Oct 2, 2023 19:1131,94958,123,88526,107,0002,008,0002,527,232
10Oct 2, 2023 19:1131,95056,909,09325,104,0003,012,0002,514,944
11Oct 2, 2023 19:1132,11050,551,22225,230,0003,027,0002,379,776
12Oct 2, 2023 19:1132,11951,783,28125,237,0003,028,0002,371,584