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 25, 2023 17:40gchebanovgchebanovScore: 35,844Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 25, 2023 17:4035,80687,824,57931,509,50602,252,800
2Jul 25, 2023 17:4035,84474,075,54131,543,03902,297,856
3Jul 25, 2023 17:4035,850110,345,41831,547,68202,297,856