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 26, 2021 20:16Yuriy LyfenkoYuriy LyfenkoScore: 43,538Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2021 20:1643,26099,198,04538,068,96402,183,168
2Jun 26, 2021 20:1643,39689,096,87238,188,30102,187,264
3Jun 26, 2021 20:1643,40062,990,95437,187,0001,005,0002,527,232
4Jun 26, 2021 20:1643,43061,962,84135,201,0003,017,0002,342,912
5Jun 26, 2021 20:1643,47666,904,02836,246,0002,013,0002,523,136
6Jun 26, 2021 20:1643,525110,012,52338,302,36802,191,360
7Jun 26, 2021 20:1643,53862,316,88136,297,0002,016,0002,334,720
8Jun 26, 2021 20:1643,57562,580,54836,328,0002,018,0002,334,720
9Jun 26, 2021 20:1643,57864,590,39737,340,0001,009,0002,527,232
10Jun 26, 2021 20:1643,64361,858,28135,374,0003,032,0002,531,328
11Jun 26, 2021 20:1643,66463,157,98137,413,0001,011,0002,519,040
12Jun 26, 2021 20:1643,73259,371,23237,472,0001,012,0002,531,328