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 7, 2024 00:43mberman12mberman12Score: 973,673Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2024 00:43973,566918,064,690856,737,70902,347,008
2Jul 7, 2024 00:43973,673912,367,489856,832,42702,220,032
3Jul 7, 2024 00:43977,818923,934,767860,480,07802,228,224