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 23, 2024 00:02Joad 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 23, 2024 00:0200000Error: expected "51107765216636 ", got "51108515848773"
2Apr 23, 2024 00:0356,115108,860,57449,380,84202,265,088
3Apr 23, 2024 00:0356,483109,927,69949,704,82402,260,992
4Apr 23, 2024 00:0356,531123,122,93949,746,88902,260,992