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 listJul 7, 2021 08:31Andrei GrazhdankovAndrei GrazhdankovScore: 18,611,672Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2021 08:3118,585,83316,421,021,62116,355,533,46502,195,456
2Jul 7, 2021 08:3118,611,67216,442,436,88816,378,271,62402,191,360
3Jul 7, 2021 08:3118,678,77016,491,056,83916,437,317,48202,248,704