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 13:43Yuriy LyfenkoYuriy LyfenkoScore: 64,616Success
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 13:4351,688116,821,16345,485,17002,211,840
2Jun 21, 2021 13:4351,708107,726,19445,503,07202,220,032
3Jun 21, 2021 13:4351,810101,971,71445,592,43402,224,128
4Jun 21, 2021 13:4364,36080,849,08356,637,00002,375,680
5Jun 21, 2021 13:4364,42481,165,79456,693,00002,269,184
6Jun 21, 2021 13:4364,44981,128,86856,715,00002,269,184
7Jun 21, 2021 13:4364,61683,727,85855,865,000997,0002,269,184
8Jun 21, 2021 13:4364,62285,562,18855,870,000997,0002,367,488
9Jun 21, 2021 13:4364,62886,620,82355,876,000997,0002,269,184
10Jun 21, 2021 13:4364,63683,054,17655,883,000997,0002,269,184
11Jun 21, 2021 13:4364,65284,433,27355,896,000998,0002,269,184
12Jun 21, 2021 13:4364,82085,329,17455,041,0002,001,0002,375,680