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 23:03Joad NacerJoad NacerError
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 23:0400000Error: expected "50913242798527 ", got "50914453452068 "
2Apr 22, 2024 23:03210,778247,046,655185,485,00502,260,992
3Apr 22, 2024 23:03211,109244,223,481185,775,80902,256,896
4Apr 22, 2024 23:03211,457242,529,815186,082,03902,256,896