Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,195,008 members, 7,956,732 topics. Date: Monday, 23 September 2024 at 05:40 PM

Stuck In The Algo Lab - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Stuck In The Algo Lab (1947 Views)

Researchers Develop New Algo To Train Robots For Armies / I Am Stuck In My Project...i Need Help From A Good Java Programmer / Andela Lab Solution(fizzbuzz) (2) (3) (4)

(1) (Reply)

Stuck In The Algo Lab by iamoracle: 6:13pm On Mar 31, 2016
[color=#990000][/color]
Please, anyone with the algo lab code, am stuck in there, it's passing all my code but failed to submit saying "your solution failed to pass all the test"
This is my code below...

Re: Stuck In The Algo Lab by larisoft: 8:43am On Apr 01, 2016
Your prime number function appears to be testing for just "non-even" numbers..and it does this check just once too.

it should divide all numbers below itself, if it gets a number that divided it and that number is neither one, nor the itself, only then should you return false.

(1) (Reply)

Google Code Jam: Round 1A / The Cost Of Hosting A Standard School Website. / Pls How Can I Achieve This With Php

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 4
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.