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 listSep 4, 2023 22:00Andrew EpsteinAndrew EpsteinScore: 129,160Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 16, 2023 21:38128,926182,850,839113,454,70402,244,608
2Jul 16, 2023 21:38129,092175,755,766113,600,64702,252,800
3Sep 4, 2023 22:00129,115171,606,478113,621,35302,244,608
4Sep 4, 2023 22:00129,160171,596,773113,660,80602,248,704
5Sep 4, 2023 22:00129,212173,165,170113,706,73702,248,704
6Jul 16, 2023 21:38129,308165,439,758113,790,60102,256,896