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 listJul 8, 2021 17:14Yuriy LyfenkoYuriy LyfenkoScore: 39,169Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2021 17:1430,77193,192,08927,078,58502,224,128
2Jul 8, 2021 17:1430,772101,409,42927,079,46902,224,128
3Jul 8, 2021 17:1430,81988,528,61027,120,46302,228,224
4Jul 8, 2021 17:1439,02757,877,59533,334,0001,010,0002,379,776
5Jul 8, 2021 17:1439,06459,849,18633,365,0001,011,0002,371,584
6Jul 8, 2021 17:1439,16752,261,08133,454,0001,013,0002,375,680
7Jul 8, 2021 17:1439,16968,580,14633,456,0001,013,0002,379,776
8Jul 8, 2021 17:1439,17558,243,56434,474,00002,269,184
9Jul 8, 2021 17:1439,23655,280,55233,513,0001,015,0002,265,088
10Jul 8, 2021 17:1439,28256,256,14433,552,0001,016,0002,498,560
11Jul 8, 2021 17:1439,34255,596,48234,621,00002,383,872
12Jul 8, 2021 17:1439,43669,538,34133,684,0001,020,0002,379,776