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 listJul 6, 2024 23:05mberman12mberman12Score: 7,919,433Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2024 23:057,878,8196,994,034,7746,933,361,06902,260,992
2Jul 6, 2024 23:057,919,4337,044,805,1426,969,100,81202,260,992
3Jul 6, 2024 23:057,928,4917,047,212,9926,977,071,77102,379,776