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 14, 2024 20:19zielajzielajScore: 6,732Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 15, 2024 00:006,69121,562,2354,907,000981,0002,506,752
2Dec 15, 2024 00:006,70921,609,9584,920,000984,0002,531,328
3Dec 14, 2024 23:586,71721,125,2263,941,0001,970,0002,531,328
4Dec 15, 2024 00:006,71920,301,2914,928,000985,0002,506,752
5Dec 15, 2024 00:006,72319,156,3255,916,00002,510,848
6Dec 15, 2024 00:006,72327,137,4615,916,00002,506,752
7Dec 15, 2024 00:006,72626,482,5674,933,000986,0002,531,328
8Dec 14, 2024 23:586,73221,717,9984,937,000987,0002,519,040
9Dec 14, 2024 23:586,73821,808,6944,941,000988,0002,510,848
10Dec 15, 2024 00:006,82222,918,8875,003,0001,000,0002,531,328
11Dec 15, 2024 00:006,82223,662,4825,003,0001,000,0002,527,232
12Dec 15, 2024 00:006,84727,844,3145,021,0001,004,0002,506,752
13Dec 14, 2024 20:197,61423,806,0164,786,0001,914,0002,273,280
14Dec 14, 2024 20:197,84925,186,2044,934,0001,973,0002,506,752
15Dec 14, 2024 20:198,26529,225,2735,195,0002,078,0002,510,848