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 listDec 23, 2023 20:38Kenneth MaplesKenneth MaplesScore: 43,243Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 23, 2023 20:3843,09966,635,63136,929,000998,0002,387,968
2Dec 23, 2023 20:3843,16061,139,29436,982,000999,0002,506,752
3Dec 23, 2023 20:3843,17867,689,25836,998,000999,0002,265,088
4Dec 23, 2023 20:3843,18663,921,40437,004,0001,000,0002,265,088
5Dec 23, 2023 20:3843,20961,104,96336,023,0002,001,0002,392,064
6Dec 23, 2023 20:3843,21866,573,06236,031,0002,001,0002,265,088
7Dec 23, 2023 20:3843,24363,257,96737,053,0001,001,0002,265,088
8Dec 23, 2023 20:3843,27863,042,30137,083,0001,002,0002,265,088
9Dec 23, 2023 20:3843,38096,426,69138,174,47402,244,608
10Dec 23, 2023 20:3843,415109,596,20438,205,18002,228,224
11Dec 23, 2023 20:3843,42362,316,39736,201,0002,011,0002,265,088
12Dec 23, 2023 20:3843,43298,209,65238,220,50602,240,512