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 18, 2021 01:18Yuriy LyfenkoYuriy LyfenkoScore: 108,754Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 18, 2021 01:18108,450154,874,49695,436,39802,240,512
2Jun 18, 2021 01:18108,689157,464,94495,646,49502,228,224
3Jun 18, 2021 01:18108,695157,784,90495,651,81802,236,416
4Jun 18, 2021 01:18108,737166,062,11695,688,37802,240,512
5Jun 18, 2021 01:18108,754158,549,07295,703,42202,236,416
6Jun 18, 2021 01:18108,912154,856,96395,842,90102,232,320
7Jun 18, 2021 01:18109,013157,741,70695,931,54502,232,320
8Jun 18, 2021 01:18109,048162,173,03195,962,42102,236,416
9Jun 18, 2021 01:18109,193164,348,23996,089,66402,232,320