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 28, 2022 09:14Yuriy LyfenkoYuriy LyfenkoScore: 27,211Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 09:1427,15748,786,90522,903,000995,0002,387,968
2Dec 28, 2022 09:1427,16955,777,77121,917,0001,992,0002,527,232
3Dec 28, 2022 09:1427,17054,135,36922,914,000996,0002,396,160
4Dec 28, 2022 09:1427,17750,724,42821,923,0001,993,0002,265,088
5Dec 28, 2022 09:1427,19151,356,00221,934,0001,994,0002,387,968
6Dec 28, 2022 09:1427,21047,206,59522,948,000997,0002,392,064
7Dec 28, 2022 09:1427,21155,154,03922,905,0001,041,0002,265,088
8Dec 28, 2022 09:1427,24154,664,40821,975,0001,997,0002,527,232
9Dec 28, 2022 09:1427,29750,276,21523,021,0001,000,0002,265,088
10Dec 28, 2022 09:1431,919101,013,43128,089,15602,236,416
11Dec 28, 2022 09:1432,199105,833,51428,334,70702,240,512
12Dec 28, 2022 09:1432,22996,157,76728,361,54402,232,320