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 listDec 19, 2024 01:49zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2024 02:3500000Error: expected "51538451010918 ", got "51538449836467 "stderr
2Dec 19, 2024 01:494,80021,733,2043,168,0001,056,0002,531,328
3Dec 19, 2024 01:495,25122,131,3683,466,0001,155,0002,510,848
4Dec 19, 2024 01:495,46722,466,5284,811,00002,510,848