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 14, 2024 22: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
1Dec 14, 2024 22:0200000Error: expected "51044001071898 ", got "51044001069901 "stderr
2Dec 14, 2024 22:0300000Error: expected "51887422971084 ", got "51889539454111 "stderr
3Dec 14, 2024 22:0300000Error: expected "50858688629505 ", got "50859229250686 "stderr
4Dec 14, 2024 22:0400000Error: expected "51247047466090 ", got "51247398523642 "stderr
5Dec 14, 2024 22:0400000Error: expected "51506297351026 ", got "51508437310339 "stderr
6Dec 14, 2024 22:0323,58047,305,53120,750,00002,433,024
7Dec 14, 2024 22:0323,60646,814,27720,773,00002,531,328
8Dec 14, 2024 22:0323,77445,439,44718,929,0001,992,0002,527,232