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 13, 2023 17:47Bernard TeoBernard TeoScore: 523,121Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2023 17:43522,711521,964,164459,985,79802,248,704
2Jul 13, 2023 17:43522,877526,344,095460,131,56202,260,992
3Jul 13, 2023 17:47523,036537,222,243460,271,51102,265,088
4Jul 13, 2023 17:47523,121530,221,643460,346,66602,248,704
5Jul 13, 2023 17:43523,136519,688,495460,360,05702,252,800
6Jul 13, 2023 17:47523,499533,984,370460,679,14302,252,800