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 17:10Joad NacerJoad NacerScore: 2,168,543Success
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 17:102,161,9851,969,594,1171,902,546,37902,260,992
2Apr 22, 2024 17:102,168,5431,966,265,9841,908,317,89202,265,088
3Apr 22, 2024 17:102,174,4691,979,013,0891,913,532,40902,273,280