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 07:32Yuriy LyfenkoYuriy LyfenkoScore: 55,633Success
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 07:3255,161126,084,83648,541,64402,228,224
2Dec 28, 2022 07:3255,20870,208,10448,583,00002,396,160
3Dec 28, 2022 07:3255,249112,421,80248,619,07402,232,320
4Dec 28, 2022 07:3255,52074,629,88947,861,000997,0002,506,752
5Dec 28, 2022 07:3255,57781,264,50546,912,0001,996,0002,527,232
6Dec 28, 2022 07:3255,62076,802,69847,948,000998,0002,265,088
7Dec 28, 2022 07:3255,63373,673,06247,958,000999,0002,527,232
8Dec 28, 2022 07:3255,71877,726,70547,031,0002,001,0002,383,872
9Dec 28, 2022 07:3255,75777,737,06948,065,0001,001,0002,527,232
10Dec 28, 2022 07:3255,82375,830,99647,119,0002,005,0002,523,136
11Dec 28, 2022 07:3255,83574,569,20847,130,0002,005,0002,265,088
12Dec 28, 2022 07:3255,836105,290,62649,135,36102,236,416