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 01:04apuxbtapuxbtScore: 40,634Success
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 01:0440,50958,281,18834,630,0001,018,0002,293,760
2Oct 3, 2023 01:0440,52099,093,44735,657,91002,203,648
3Oct 3, 2023 01:0440,56969,119,29434,681,0001,020,0002,293,760
4Oct 3, 2023 01:0440,57861,376,48334,689,0001,020,0002,482,176
5Oct 3, 2023 01:0440,58461,659,88134,694,0001,020,0002,293,760
6Oct 3, 2023 01:0440,63362,198,48934,736,0001,021,0002,293,760
7Oct 3, 2023 01:0440,63463,924,36634,737,0001,021,0002,293,760
8Oct 3, 2023 01:0440,65692,618,85435,777,12502,207,744
9Oct 3, 2023 01:0440,72863,187,66933,850,0001,991,0002,478,080
10Oct 3, 2023 01:0440,77066,770,71333,885,0001,993,0002,293,760
11Oct 3, 2023 01:0440,80161,555,37034,908,000997,0002,293,760
12Oct 3, 2023 01:0440,820102,238,06435,921,60102,207,744