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:56apuxbtapuxbtScore: 34,886Success
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:5634,74255,082,51129,554,0001,019,0002,265,088
2Nov 30, 2022 11:5634,80752,885,76730,630,00002,387,968
3Nov 30, 2022 11:5634,82255,568,98730,643,00002,265,088
4Nov 30, 2022 11:5634,83457,485,46630,654,00002,265,088
5Nov 30, 2022 11:5634,83850,436,13729,636,0001,021,0002,265,088
6Nov 30, 2022 11:5634,86656,922,52830,682,00002,265,088
7Nov 30, 2022 11:5634,88663,264,69329,677,0001,023,0002,383,872
8Nov 30, 2022 11:5634,89757,487,82529,686,0001,023,0002,375,680
9Nov 30, 2022 11:5635,10751,992,73329,898,000996,0002,260,992
10Nov 30, 2022 11:5635,25295,032,75331,021,51902,236,416
11Nov 30, 2022 11:5635,25488,372,71031,023,41602,232,320
12Nov 30, 2022 11:5635,281101,729,07031,047,41202,236,416