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 listApr 24, 2024 18:05Evgeniy HizhukEvgeniy HizhukScore: 7,337,757Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2024 18:057,325,5816,507,138,9206,446,510,89802,256,896
2Apr 24, 2024 18:057,337,7576,519,837,2086,457,226,47402,269,184
3Apr 24, 2024 18:057,387,5606,553,093,4096,501,053,21302,256,896