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:05Joad 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:0000000Error: expected "51493752982608 ", got "51495216161425 "
2Apr 22, 2024 23:0000000Error: expected "51450943140706 ", got "51453022570014 "
3Apr 22, 2024 23:0200000Error: expected "51008695372537 ", got "51009482581814 "
4Apr 22, 2024 23:0500000Error: expected "51207855539615 ", got "51207903988276 "
5Apr 22, 2024 23:0557,387121,234,32750,500,55002,265,088
6Apr 22, 2024 23:0557,567112,167,74550,658,66002,252,800
7Apr 22, 2024 23:0557,598122,056,63550,686,28302,252,800