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 listNov 29, 2022 07:50apuxbtapuxbtScore: 35,592Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 29, 2022 07:5035,36356,520,79229,112,0002,007,0002,379,776
2Nov 29, 2022 07:5035,44562,987,29330,186,0001,006,0002,265,088
3Nov 29, 2022 07:5035,45763,569,02230,196,0001,006,0002,265,088
4Nov 29, 2022 07:5035,54561,183,92830,271,0001,009,0002,383,872
5Nov 29, 2022 07:5035,57558,959,73331,306,00002,265,088
6Nov 29, 2022 07:5035,58353,454,39231,313,00002,269,184
7Nov 29, 2022 07:5035,59268,274,16430,311,0001,010,0002,265,088
8Nov 29, 2022 07:5035,60756,433,68331,334,00002,265,088
9Nov 29, 2022 07:5035,62055,516,48031,346,00002,379,776
10Nov 29, 2022 07:5036,444112,657,46032,070,71202,236,416
11Nov 29, 2022 07:5036,460109,123,18332,084,38402,240,512
12Nov 29, 2022 07:5036,538105,358,85932,153,60202,236,416