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:31Yuriy LyfenkoYuriy LyfenkoScore: 55,551Success
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:3155,21773,724,66548,591,00002,265,088
2Dec 28, 2022 07:3155,23171,031,31848,603,00002,527,232
3Dec 28, 2022 07:3155,23273,954,98748,604,00002,265,088
4Dec 28, 2022 07:3155,23269,515,80947,592,0001,012,0002,383,872
5Dec 28, 2022 07:3155,29474,329,04148,659,00002,265,088
6Dec 28, 2022 07:3155,54780,120,38247,884,000997,0002,392,064
7Dec 28, 2022 07:3155,55181,431,17746,890,0001,995,0002,396,160
8Dec 28, 2022 07:3155,56177,089,40846,899,0001,995,0002,265,088
9Dec 28, 2022 07:3155,78676,960,71648,091,0001,001,0002,498,560
10Dec 28, 2022 07:3156,159118,045,94949,419,51202,228,224
11Dec 28, 2022 07:3156,671125,522,37549,870,63602,236,416
12Dec 28, 2022 07:3156,692109,202,51949,889,18502,228,224