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:14Yuriy LyfenkoYuriy LyfenkoScore: 116,380Success
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:15116,147168,735,183102,209,05402,310,144
2Jun 18, 2021 01:15116,193161,119,650102,249,67502,314,240
3Jun 18, 2021 01:14116,224173,763,294102,276,83802,314,240
4Jun 18, 2021 01:15116,319168,995,804102,360,42102,306,048
5Jun 18, 2021 01:15116,380160,774,188102,414,02202,310,144
6Jun 18, 2021 01:15116,419177,264,601102,449,06802,310,144
7Jun 18, 2021 01:15116,425165,712,361102,454,39802,322,432
8Jun 18, 2021 01:14116,578170,517,147102,588,91002,310,144
9Jun 18, 2021 01:14116,715185,774,436102,708,90102,314,240