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 30, 2022 11:51apuxbtapuxbtScore: 33,998Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 30, 2022 11:5133,84156,009,05028,754,0001,026,0002,383,872
2Nov 30, 2022 11:5133,96756,027,93827,899,0001,992,0002,252,800
3Nov 30, 2022 11:5133,97457,722,38828,901,000996,0002,265,088
4Nov 30, 2022 11:5133,97657,250,57527,906,0001,993,0002,383,872
5Nov 30, 2022 11:5133,97662,563,20328,903,000996,0002,265,088
6Nov 30, 2022 11:5133,98259,981,24628,908,000996,0002,265,088
7Nov 30, 2022 11:5133,99856,573,75627,924,0001,994,0002,379,776
8Nov 30, 2022 11:5134,01358,040,20927,936,0001,995,0002,379,776
9Nov 30, 2022 11:5134,06659,566,10127,980,0001,998,0002,265,088
10Nov 30, 2022 11:5135,28595,031,93231,050,68102,244,608
11Nov 30, 2022 11:5135,308100,222,53231,070,87402,240,512
12Nov 30, 2022 11:5135,31192,290,31031,073,27402,228,224