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 22, 2024 18:06Joad NacerJoad NacerScore: 182,257Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2024 18:06181,928213,993,472160,097,03902,265,088
2Apr 22, 2024 18:06182,257260,318,629160,386,52202,265,088
3Apr 22, 2024 18:06182,548236,697,900160,641,92402,256,896