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 listJun 28, 2021 03:28Yuriy LyfenkoYuriy LyfenkoScore: 36,691Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2021 03:2831,49297,077,30027,712,77402,224,128
2Jun 28, 2021 03:2831,51991,471,77427,736,81702,224,128
3Jun 28, 2021 03:2831,55789,820,97727,769,87302,211,840
4Jun 28, 2021 03:2836,64455,434,53630,232,0002,015,0002,269,184
5Jun 28, 2021 03:2836,68658,464,62332,284,00002,269,184
6Jun 28, 2021 03:2836,69055,112,02432,287,00002,269,184
7Jun 28, 2021 03:2836,69158,390,93930,270,0002,018,0002,269,184
8Jun 28, 2021 03:2836,70355,168,05731,290,0001,009,0002,375,680
9Jun 28, 2021 03:2836,70554,754,56631,291,0001,009,0002,379,776
10Jun 28, 2021 03:2836,73552,720,05932,327,00002,269,184
11Jun 28, 2021 03:2836,84353,919,53131,409,0001,013,0002,269,184
12Jun 28, 2021 03:2836,88259,228,40131,442,0001,014,0002,367,488