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 18:30apuxbtapuxbtScore: 40,869Success
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 18:3040,59363,350,14534,702,0001,020,0002,281,472
2Oct 2, 2023 18:3040,722101,289,40535,835,00702,269,184
3Oct 2, 2023 18:3040,724101,590,57235,837,42102,269,184
4Oct 2, 2023 18:3040,77362,549,24134,884,000996,0002,359,296
5Oct 2, 2023 18:3040,78361,587,85033,896,0001,993,0002,416,640
6Oct 2, 2023 18:3040,79761,243,81532,910,0002,991,0002,281,472
7Oct 2, 2023 18:3040,869107,749,64335,964,44902,256,896
8Oct 2, 2023 18:3040,94861,943,97134,033,0002,001,0002,285,568
9Oct 2, 2023 18:3040,97759,288,08733,055,0003,005,0002,359,296
10Oct 2, 2023 18:3041,04758,616,86835,118,0001,003,0002,285,568
11Oct 2, 2023 18:3041,05958,632,69634,125,0002,007,0002,269,184
12Oct 2, 2023 18:3041,12358,977,40933,173,0003,015,0002,281,472