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 14, 2024 00:03Alexander SpeshilovAlexander SpeshilovScore: 13,244,417Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 14, 2024 00:0313,223,89211,699,556,67411,637,024,53302,265,088
2Jun 14, 2024 00:0313,244,41711,718,796,17111,655,086,92202,256,896
3Jun 14, 2024 00:0313,257,34811,740,342,68311,666,466,47902,240,512