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:15Yuriy LyfenkoYuriy LyfenkoScore: 39,066Success
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:1530,880591,482,91327,174,07502,240,512
2Jul 8, 2021 17:1530,926596,655,17027,215,03702,240,512
3Jul 8, 2021 17:1531,055598,436,02027,328,42802,240,512
4Jul 8, 2021 17:1538,917556,242,42834,247,00002,269,184
5Jul 8, 2021 17:1538,972563,748,15234,295,00002,379,776
6Jul 8, 2021 17:1539,056561,539,24334,369,00002,269,184
7Jul 8, 2021 17:1539,066562,527,87134,378,00002,265,088
8Jul 8, 2021 17:1539,072559,958,22334,383,00002,269,184
9Jul 8, 2021 17:1539,118558,252,90833,412,0001,012,0002,265,088
10Jul 8, 2021 17:1539,194555,702,64333,477,0001,014,0002,265,088
11Jul 8, 2021 17:1539,311560,262,43533,577,0001,017,0002,265,088
12Jul 8, 2021 17:1539,319559,880,09234,601,00002,269,184