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:21Yuriy LyfenkoYuriy LyfenkoScore: 39,965Success
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:2139,70162,930,73933,939,000998,0002,527,232
2Jun 26, 2021 20:2139,766109,983,22534,994,23302,187,264
3Jun 26, 2021 20:2139,80190,521,65435,025,29902,199,552
4Jun 26, 2021 20:2139,85261,323,73933,066,0002,004,0002,519,040
5Jun 26, 2021 20:2139,87359,173,86033,083,0002,005,0002,531,328
6Jun 26, 2021 20:2139,90061,527,26733,106,0002,006,0002,334,720
7Jun 26, 2021 20:2139,96563,552,93432,155,0003,014,0002,334,720
8Jun 26, 2021 20:2139,96956,631,23733,164,0002,009,0002,334,720
9Jun 26, 2021 20:2139,99260,947,27833,182,0002,011,0002,531,328
10Jun 26, 2021 20:2140,017114,082,68235,214,74602,195,456
11Jun 26, 2021 20:2140,01760,193,65333,203,0002,012,0002,334,720
12Jun 26, 2021 20:2140,13956,664,95533,304,0002,018,0002,523,136