Tags » Kesari

bitset declration causes SIGSEGV

Here’s the (incomplete) code to find some prime numbers.


#define SQRT_10_POW_12 1000000llu
#define _10_POW_12_BY_2 1000000000000llu/2llu

using namespace std;

int main()
    unsigned int T;
    unsigned long long n;
    register unsigned int it1,it2;

    bitset<SQRT_10_POW_12+1llu> isprime;
    bitset<_10_POW_12_BY_2+1llu> nums;

    return 0;
… 35 more words
Recent Questions - Stack Overflow

The Zen of eating

An elderly gentleman sat next to me at a restaurant this morning. He was dressed in a spotless white shirt and could have been in his seventies but his face looked tired. 214 more words

In Medias Res

Using JAVA Iterator

I’m trying delete strings which have even index numbers in this ArrayList, using “Iterator”.remove.

    import java.util.*;
import static java.lang.System.out;

class MAIN
    public static void main(String args[])
        ArrayList<String> al = new ArrayList<String>();
        Iterator i = al.iterator();
        int len;
        Scanner sc = new Scanner(System.in);
        len = sc.nextInt();

        while( len!=0 )
            al.add( sc.next() );
            len -= 1;

        Object o;
        for( len = 0 ; len < al.size() ; len +=1)
            if( len%2==0 )
                o = i.next();


… 24 more words
Recent Questions - Stack Overflow

When I walked for Kesari Queen

It feels nice and warm when one gets to walk the ramp in front of thousands of people and poise with attitude. Same feeling is what I had when I walked the ramp for Kesari Queen. 256 more words


apt-get remove libstdc++-4.8-doc | 101MB will be freed?

Here’s the output of apt-get remove libstdc++-4.8-doc on my system.

$ sudo apt-get remove libstdc++-4.8-doc 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 189 more words

Rava kesari , how to make rava kesari

Rava kesari is the most easiest sweet of Indian sweet recipes.The only difficult part is to make them without any lumps.Such an easy recipe,takes just few minutes to make them but tastes really good. 107 more words