1. M

    VOTE FOR THE SRILANKA'S BEST DJ ARTIST

    DJs are not artists man they just make new music from existing music, An artist makes music from his knowledge of music 2 different things
  2. M

    C Programmers Help Me!!!!

    this is my code #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { int i,n; int isprime; cin>>n; isprime=1; i=abs(n); //neglect negative numbers n=i; if (n%2==0 && n!=2) isprime=-1; while (i>2 && isprime==1) {...
  3. M

    C Programmers Help Me!!!!

    no you dont and you still dont get it, im talking about the part thats bold :P #include<stdio.h> int main(){ int i,j,s,ip; scanf("%d",&s); ip=1; j=s; i=2; while(s>2&&i*i<=s){ if(j%2==0||s%i==0){ip=-1;break;} i++; }...
  4. M

    C Programmers Help Me!!!!

    i can understand that thats why i said u can make it faster by adding things but you let the even check be in the while loop is its slower than you think trust me i have been programming for 6 years :P
  5. M

    C Programmers Help Me!!!!

    i;ve told him twice to use the even check for j before the while but no point :P eya asa na lu but he says his prog is fast you know anyway that we can get tick count in c++?
  6. M

    A record victory for UPFA

    ow SB awama meka sura purayak karanawa ne ane ane SBta giya kala
  7. M

    Is love before marriage better?

    oya komada kiyanne api denna athara mona hari wenawa mai kiyala lmao eka hama ekenatama podu wene na ne ane me machan man danawane pakistan wala ganunta salakana hati ewa gana katakarana ko discovery eke ona taran program yanawa mewa prashnada? ewath eka gathama, wena ekek eka katha kara kiyala...
  8. M

    C Programmers Help Me!!!!

    Shorter code doesnt mean its fast! you're still using the even check inside the while loop j doesnt change with i so why did you put it inside the while loop? theres no need of checking the same number whether its even or not again and again?, you make it faster by other things but make it alot...
  9. M

    mata torants use karanna kiyala denawada

    torrent wada karana krame danawanam use karana lesi wei man podi intro ekak denam, FTP, HTTP wage transfers wene direct server to client ehen ewa mehen gatha echarai e nisa server upload speed eka godak wadinam download karana ayata aulak na. Torrents wala servers tiyenawa habai ewa commercial...
  10. M

    Is love before marriage better?

    you define love by that? lmao
  11. M

    C Programmers Help Me!!!!

    source eka 20MB witara wenawa man heta dihata mage yaluwagen ahala upload karanam kamak na ne :)
  12. M

    C Programmers Help Me!!!!

    yea fully VB, graph supports graphical differentiation and integration ;p mage pixu wada mona aiya da ane man 2008 AL mora ringa gana zscore madi UCSC yanawa hambunoth :P source eka denam commercial wada ba
  13. M

    C Programmers Help Me!!!!

    #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { int i,n; int isprime; cin>>n; isprime=true; i=abs(n); //neglect negative numbers n=i; while (i>2) { if(n%2==0){isprime=-1;break;} i--; if...
  14. M

    C Programmers Help Me!!!!

    i did think that 1 is a prime when i was coding :P it should be it is dividable by 1 and itself which we see as a common thing in all other prime numbers, its just a definition not actual math. I didnt now the definition at the time of coding and i thought of the common factor in all primes and...
  15. M

    C Programmers Help Me!!!!

    I didnt change anything it works well man :P i edited the code some while ago(before you said it has a bug) to make it shorter after posting in EK u may have copied the program then copy it now and see I copied the code from EK then compiled a new project same result(this is the exact code that...
  16. M

    C Programmers Help Me!!!!

    sure dath kiyala ahanawa
  17. M

    C Programmers Help Me!!!!

    correct what? it works fine with mingw32 compiler its C++ not C :)
  18. M

    C Programmers Help Me!!!!

    double post, due to server load srry :P

    No contents