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 21, 2021 18:20Yuriy LyfenkoYuriy LyfenkoScore: 44,267Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2021 18:2038,980101,454,67634,302,53402,211,840
2Jun 21, 2021 18:2039,001124,857,87034,321,01402,207,744
3Jun 21, 2021 18:2039,058109,449,76134,370,94102,211,840
4Jun 21, 2021 18:2044,19167,720,46537,891,000997,0002,269,184
5Jun 21, 2021 18:2044,24063,085,74137,933,000998,0002,269,184
6Jun 21, 2021 18:2044,26069,869,13137,951,000998,0002,269,184
7Jun 21, 2021 18:2044,26768,293,70236,958,0001,997,0002,367,488
8Jun 21, 2021 18:2044,31663,597,89037,999,000999,0002,269,184
9Jun 21, 2021 18:2044,38166,911,26037,053,0002,002,0002,375,680
10Jun 21, 2021 18:2044,40570,382,01537,073,0002,003,0002,367,488
11Jun 21, 2021 18:2044,40966,119,49438,078,0001,002,0002,269,184
12Jun 21, 2021 18:2044,54565,468,66038,195,0001,005,0002,269,184