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 22, 2021 19:55Yuriy LyfenkoYuriy LyfenkoScore: 44,285Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2021 19:5539,018113,868,13734,335,96002,220,032
2Jun 21, 2021 18:5139,025104,124,20934,341,99402,224,128
3Jun 21, 2021 18:5139,032102,246,29534,348,56202,240,512
4Jun 22, 2021 19:5539,03298,658,97834,347,91702,215,936
5Jun 21, 2021 18:5139,096107,642,91934,404,69602,220,032
6Jun 22, 2021 19:5539,11384,939,78134,419,54102,215,936
7Jun 22, 2021 19:5544,01771,338,27338,735,00002,269,184
8Jun 22, 2021 19:5544,14764,592,49136,857,0001,992,0002,269,184
9Jun 21, 2021 18:5144,18567,024,01237,886,000997,0002,269,184
10Jun 22, 2021 19:5544,19264,807,50736,895,0001,994,0002,269,184
11Jun 22, 2021 19:5544,20766,012,67137,905,000997,0002,269,184
12Jun 21, 2021 18:5144,22463,541,49636,922,0001,995,0002,269,184
13Jun 21, 2021 18:5144,28564,928,55736,973,0001,998,0002,371,584
14Jun 21, 2021 18:5144,29265,882,06237,978,000999,0002,367,488
15Jun 21, 2021 18:5144,29967,050,23736,984,0001,999,0002,375,680
16Jun 22, 2021 19:5544,30866,729,43937,992,000999,0002,269,184
17Jun 22, 2021 19:5544,32064,223,92937,002,0002,000,0002,379,776
18Jun 21, 2021 18:5144,33167,716,36038,011,0001,000,0002,273,280
19Jun 21, 2021 18:5144,34569,174,77537,023,0002,001,0002,269,184
20Jun 22, 2021 19:5544,35064,657,70538,028,0001,000,0002,457,600
21Jun 22, 2021 19:5544,35864,353,67538,035,0001,000,0002,269,184
22Jun 21, 2021 18:5144,36663,623,19937,040,0002,002,0002,269,184
23Jun 22, 2021 19:5544,40867,583,77337,075,0002,004,0002,269,184
24Jun 21, 2021 18:5144,41064,686,20637,077,0002,004,0002,371,584