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 27, 2021 00:59Yuriy LyfenkoYuriy LyfenkoScore: 43,715Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 00:5938,87091,761,05034,206,00802,215,936
2Jun 27, 2021 00:5938,928101,051,41034,256,67202,220,032
3Jun 27, 2021 00:5938,94987,372,45434,275,02702,228,224
4Jun 27, 2021 00:5943,53060,867,24337,298,0001,008,0002,371,584
5Jun 27, 2021 00:5943,64461,893,96237,397,0001,010,0002,269,184
6Jun 27, 2021 00:5943,71362,953,67938,467,00002,269,184
7Jun 27, 2021 00:5943,71568,070,67437,457,0001,012,0002,375,680
8Jun 27, 2021 00:5943,72562,666,43337,466,0001,012,0002,269,184
9Jun 27, 2021 00:5943,78160,813,76938,527,00002,379,776
10Jun 27, 2021 00:5943,79764,784,22437,527,0001,014,0002,269,184
11Jun 27, 2021 00:5943,83363,716,09938,573,00002,379,776
12Jun 27, 2021 00:5943,87865,072,63238,613,00002,269,184