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 17, 2021 17:30Yuriy LyfenkoYuriy LyfenkoScore: 170,396Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 17, 2021 17:30168,598214,684,416148,365,86002,310,144
2Jun 17, 2021 17:30169,120206,299,264148,825,69802,310,144
3Jun 17, 2021 17:30169,744207,059,049149,374,30302,314,240
4Jun 17, 2021 17:30169,892205,658,933149,504,84902,310,144
5Jun 17, 2021 17:30170,396207,277,678149,948,34202,306,048
6Jun 17, 2021 17:30170,474208,306,677150,017,43202,306,048
7Jun 17, 2021 17:30170,539219,032,115150,074,69002,301,952
8Jun 17, 2021 17:30170,923203,523,394150,412,02002,318,336
9Jun 17, 2021 17:30171,621211,404,435151,026,70302,310,144