Register
|
Login
Home
News
Competitions
Practice
How to
Rankings
Calendar
Arena
CodeFu 2007
CodeFu'07 Highlights
Jazoon'07 Highlights
Schedule
Rules
Prizes
Results
Competitions
»
Main CodeFu Competitons
»
CodeFu 2007
»
Results
CodeFu 2007 Results
CodeFu Final Round Results
TosheX's solution for 400: Square Count, written in Java
public class SquareCount { public boolean divisable(int n){ int i; for (i=0; i<=Math.sqrt((double)n); i++) if (n%i==0) return true; return false; } public int pos(int N) { int i=0; int count=0; while (count<N){ if (!(divisable(i))) count++; i++; } return i; } }