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 18:22Joad 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 18:2200000Error: expected "51634023586514 ", got "51635928111417 "
2Apr 22, 2024 18:2300000Error: expected "51385631504061 ", got "51385853858782 "
3Apr 22, 2024 18:2300000Error: expected "51631403609243 ", got "51631615636644 "
4Apr 22, 2024 18:22254,513279,474,137223,971,17902,252,800
5Apr 22, 2024 18:22254,798285,631,579224,221,92102,256,896
6Apr 22, 2024 18:22255,525287,600,188224,862,08802,256,896