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 5, 2024 23:21Joad NacerJoad NacerScore: 31,761Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 5, 2024 23:2131,70850,522,96626,907,000996,0002,269,184
2Dec 5, 2024 23:2131,71450,926,06027,908,00002,404,352
3Dec 5, 2024 23:2131,73649,531,63426,931,000997,0002,269,184
4Dec 5, 2024 23:2131,76151,187,09426,952,000998,0002,269,184
5Dec 5, 2024 23:2131,76149,692,09526,952,000998,0002,269,184
6Dec 5, 2024 23:2131,94050,089,64527,104,0001,003,0002,408,448
7Dec 5, 2024 23:2132,32847,779,45028,449,00002,277,376
8Dec 5, 2024 23:2132,47452,260,37628,577,00002,269,184
9Dec 5, 2024 23:2132,48151,652,44427,563,0001,020,0002,371,584