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 17, 2021 17:12Yuriy LyfenkoYuriy LyfenkoScore: 678,666Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 17, 2021 17:10675,155659,289,822594,136,55202,228,224
2Jun 17, 2021 17:11675,505658,011,899594,444,06002,236,416
3Jun 17, 2021 17:12675,837663,720,422594,736,87502,244,608
4Jun 17, 2021 17:10677,139657,710,467595,882,06102,232,320
5Jun 17, 2021 17:11677,555654,621,695596,248,20502,232,320
6Jun 17, 2021 17:11678,520661,936,386597,097,97702,228,224
7Jun 17, 2021 17:11678,551652,572,379597,125,30602,232,320
8Jun 17, 2021 17:11678,666665,317,026597,226,38902,232,320
9Jun 17, 2021 17:11679,629655,119,732598,073,08802,224,128
10Jun 17, 2021 17:11679,715661,416,929598,149,34602,240,512
11Jun 17, 2021 17:12680,482651,070,169598,823,86002,232,320
12Jun 17, 2021 17:11680,738658,558,715599,049,50402,244,608
13Jun 17, 2021 17:12680,758658,913,182599,066,66602,244,608
14Jun 17, 2021 17:11681,412660,288,390599,642,56302,228,224
15Jun 17, 2021 17:10682,197668,764,647600,333,36402,228,224