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:52apuxbtapuxbtScore: 34,500Success
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:5234,18857,489,76529,083,0001,002,0002,506,752
2Nov 29, 2022 07:5234,20857,745,48628,097,0002,006,0002,265,088
3Nov 29, 2022 07:5234,24855,513,54329,134,0001,004,0002,265,088
4Nov 29, 2022 07:5234,36659,611,08428,226,0002,016,0002,265,088
5Nov 29, 2022 07:5234,39152,549,17028,247,0002,017,0002,265,088
6Nov 29, 2022 07:5234,40757,792,09128,260,0002,018,0002,265,088
7Nov 29, 2022 07:5234,50051,978,09330,360,00002,265,088
8Nov 29, 2022 07:5234,54958,180,35830,403,00002,265,088
9Nov 29, 2022 07:5234,57753,837,42429,414,0001,014,0002,265,088
10Nov 29, 2022 07:5235,26198,283,85531,029,95002,228,224
11Nov 29, 2022 07:5235,33595,017,18031,094,54802,236,416
12Nov 29, 2022 07:5235,419104,674,25931,168,59802,232,320